9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: c117152@rmqkr.net
To: 9fans@9fans.net
Subject: [9fans] [9pi] standardize \ normalize setting dns in
Date: Thu, 28 Mar 2013 10:06:38 +0000	[thread overview]
Message-ID: <e1ccf729-cb59-4f7f-8c21-d32ba1e4c458@googlegroups.com> (raw)

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



             reply	other threads:[~2013-03-28 10:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28 10:06 c117152 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e1ccf729-cb59-4f7f-8c21-d32ba1e4c458@googlegroups.com \
    --to=c117152@rmqkr.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).