9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Henning Schild <henning@plan9.bell-labs.com>
To: 9fans@9fans.net
Subject: Re: [9fans] two nics (alternating) vs dns config
Date: Tue, 24 Jan 2012 11:04:00 +0100	[thread overview]
Message-ID: <20120124110400.056df2ad@leffe.cs.bell-labs.com> (raw)
In-Reply-To: <CAMhmq__WZQ2MS_FiAfgV385xHuKbwzi8aTXhxLJ7_HZppw+N1w@mail.gmail.com>

I suggest you give your VM one NAT interface and run a DNS server on
your macbook. That way you can completely hide mobility from plan9,
which is a good idea because it can not really handle it.
You can also restart the dns resolver telling it which server to use
(/env/DNSSERVER) but that will not affect running processes. I guess
dns should provide a ctl file to allow reconfiguration at runtime.
For your special case you can put multiple ips in /env/DNSSERVER, on
your secondary network you will have to wait until the primary times
out but it will work.

Henning

On Tue, 24 Jan 2012 05:15:20 +0100
Troy Cauble <troycauble@gmail.com> wrote:

> I have plan9 in VirtualBox on a macbook.
> I use the wired network at work and wifi at home.
> The Vbox config has two network adaptors,
> 1 bridged to the wired and 1 bridged to the wifi.
>
> I'd like my plan9 config to boot and work on either network.
> (Even better if it could switch without a reboot!)
>
> I've bound '#l1' to /net (not /net.alt) in /lib/namespace.$node
> and /cfg/$node/cpurc.  The two static ipconfigs work.
> I can ping out and drawterm in.
>
> The only issue is dns.  DNS always uses /net/ether0.
> How do I make it use /net/ether1 when needed?
> Would the /net.alt style config work better?
>
> My /lib/ndb/local describes both networks with the same sys name.
> MAC addresses differentiate.  'ndb/query sys $node' returns the
> right set when I'm home, but DNS doesn't use it.
>
> Thanks,
> -troy
>




  reply	other threads:[~2012-01-24 10:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24  4:15 Troy Cauble
2012-01-24 10:04 ` Henning Schild [this message]
2012-01-24 10:49   ` Charles Forsyth
2012-01-24 11:42   ` Steve Simon
     [not found] <CAMhmq__WZQ2MS_FiAfgV385xHuKbwzi8aTXhxLJ7_HZppw+N1w@mail.gmail.c>
2012-01-24  4:23 ` erik quanstrom

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=20120124110400.056df2ad@leffe.cs.bell-labs.com \
    --to=henning@plan9.bell-labs.com \
    --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).