9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] [9pi] standardize \ normalize setting dns in
@ 2013-03-28 10:06 c117152
  2013-03-28 12:02 ` Jacob Todd
  2013-03-28 12:41 ` Richard Miller
  0 siblings, 2 replies; 14+ messages in thread
From: c117152 @ 2013-03-28 10:06 UTC (permalink / raw)
  To: 9fans

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...



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-04-04 14:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-28 10:06 [9fans] [9pi] standardize \ normalize setting dns in c117152
2013-03-28 12:02 ` Jacob Todd
2013-03-28 12:41 ` Richard Miller
2013-04-03 10:39   ` c117152
2013-04-03 10:39   ` c117152
2013-04-03 10:39   ` c117152
2013-04-03 10:51     ` Richard Miller
2013-04-04  8:49       ` c117152
2013-04-04  9:24         ` Bence Fábián
2013-04-04 12:40           ` erik quanstrom
2013-04-04 13:20             ` Bence Fábián
2013-04-04 14:23               ` erik quanstrom
2013-04-04 11:15         ` Richard Miller
2013-04-03 10:54     ` Bence Fábián

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).