c***@rmqkr.net
2013-03-28 10:06:38 UTC
In 9pi, the cmdline.txt allows defining an env var that is evaluated and used by /bin/termrc.local as line arguments for ip/ipconfig. e.g.
term% dossrv -f/dev/sdM0/dos
term% mount -c /srv/dos /mnt
term% cat /mnt/cmdline.txt
readparts=1 nobootprompt=local user=glenda ipconfig='-g 10.0.0.138 ether /net/ether0 10.0.0.13 255.255.255.0'
term%
This however is only sufficient in establishing an ip. For dns resolution it's necessary to add a dns ip to the ndb. e.g.
term% ehco ' dns=8.8.8.8'>>/net/ndb
What I'd like to ask is for termrc.local to have a dns option so something like dns='8.8.8.8 8.8.4.4' will add the entries properly.
R.K.
p.s. Manually adding "ehco ' dns=8.8.8.8'>>/net/ndb" works but I'd like a more "official" solution...
term% dossrv -f/dev/sdM0/dos
term% mount -c /srv/dos /mnt
term% cat /mnt/cmdline.txt
readparts=1 nobootprompt=local user=glenda ipconfig='-g 10.0.0.138 ether /net/ether0 10.0.0.13 255.255.255.0'
term%
This however is only sufficient in establishing an ip. For dns resolution it's necessary to add a dns ip to the ndb. e.g.
term% ehco ' dns=8.8.8.8'>>/net/ndb
What I'd like to ask is for termrc.local to have a dns option so something like dns='8.8.8.8 8.8.4.4' will add the entries properly.
R.K.
p.s. Manually adding "ehco ' dns=8.8.8.8'>>/net/ndb" works but I'd like a more "official" solution...