* Re: [9fans] dns suddenly not working
@ 2007-04-26 0:07 Joel C. Salomon
2007-04-26 0:17 ` geoff
2007-04-26 0:23 ` Steve Simon
0 siblings, 2 replies; 11+ messages in thread
From: Joel C. Salomon @ 2007-04-26 0:07 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 4/25/07, erik quanstrom <quanstro@coraid.com> wrote:
> you may still have _ipconfig around. this may get you far enough
> to get the new ipconfig.
I reverted both ip/ipconfig and ndb/dns; now I get
ndb/dns: can't read my ip address
at bootup, and ndb/dnsquery complains
can't open /srv/dns: '/srv/dns' file does not exist
I suppose that's progress, of a sort.
--Joel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 0:07 [9fans] dns suddenly not working Joel C. Salomon
@ 2007-04-26 0:17 ` geoff
2007-04-26 0:23 ` Steve Simon
1 sibling, 0 replies; 11+ messages in thread
From: geoff @ 2007-04-26 0:17 UTC (permalink / raw)
To: 9fans
Do you have your machine's ip and ether addresses in ndb? E.g.,
ip=199.98.17.238 sys=laptop dom=laptop.cooper.edu
ether=00d037abcdef
bootf=/386/9pcf
Lack of this is the usual reason that dns can't figure out its IP
address.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 0:07 [9fans] dns suddenly not working Joel C. Salomon
2007-04-26 0:17 ` geoff
@ 2007-04-26 0:23 ` Steve Simon
2007-04-26 18:19 ` Joel C. Salomon
1 sibling, 1 reply; 11+ messages in thread
From: Steve Simon @ 2007-04-26 0:23 UTC (permalink / raw)
To: 9fans
not sure I really understand the problem but it looks as though
you didn't get a dns= record in /net/ndb (with the new ipconfig).
If this is all it is then you should be able to just do:
echo ' dns=1.2.3.4' >> /net/ndb
where 1.2.3.4 is your DNS server's address.
I am pretty sure this will work, though I haven't
tried it since the days I used ppp and dialup...
you will also need to get dns to reread its config:
echo refresh > /net/dns
----------
You could also check that ip/cs is able to
find a dns server for your machine:
ndb/ipquery sys $sysname dns
and try repeating this using
ndb/ipquery ip 1.2.3.4 dns
where 1.2.3.4 is your IP address
-Steve
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 0:23 ` Steve Simon
@ 2007-04-26 18:19 ` Joel C. Salomon
2007-04-26 18:43 ` geoff
2007-04-26 19:23 ` Joel C. Salomon
0 siblings, 2 replies; 11+ messages in thread
From: Joel C. Salomon @ 2007-04-26 18:19 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 4/25/07, Steve Simon <steve@quintile.net> wrote:
> not sure I really understand the problem but it looks as though
> you didn't get a dns= record in /net/ndb (with the new ipconfig).
Actually, as maters stand now, when /rc/bin/termrc calls ndb/dns -rf
$NDBFILE, I get the message
ndb/dns: can't read my ip address
My /lib/ndb/local (which $NDBFILE properly resolves to) includes the
following lines:
…
ip=199.98.17.238 sys=hymie dom=hymie.cc.cooper.edu
ether=00d0…
dns=paperweight dnsdom=paperweight.cooper.edu
…
ip=199.98.16.9 sys=paperweight dom=paperweight.cooper.edu
…
I've checked with the school network administrators; the dns server is
paperweight.cooper.edu at an ip address of 199.98.16.9, and thins
invocation kept dns happy until this week.
What should I change those lines to?
Side question: In general, do I use
sys=name dom=name.dom.org
or
sys=name dom=dom.org
to make dns recognize the enry correctly?
> You could also check that ip/cs is able to
> find a dns server for your machine:
> ndb/ipquery sys $sysname dns
> and try repeating this using
> ndb/ipquery ip 1.2.3.4 dns
> where 1.2.3.4 is your IP address
In both cases I get
dns=paperweight
-- is that what it should read?
--Joel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 18:19 ` Joel C. Salomon
@ 2007-04-26 18:43 ` geoff
2007-04-26 19:09 ` Joel C. Salomon
2007-04-26 19:23 ` Joel C. Salomon
1 sibling, 1 reply; 11+ messages in thread
From: geoff @ 2007-04-26 18:43 UTC (permalink / raw)
To: 9fans
You want
sys=hymie dom=hymie.cc.cooper.edu
dom is the FQDN of sys.
What's the output of
cat /net/ether0/addr
echo
ndb/query sys $sysname
? Are you starting dns after running ipconfig?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 18:43 ` geoff
@ 2007-04-26 19:09 ` Joel C. Salomon
2007-04-26 19:48 ` geoff
0 siblings, 1 reply; 11+ messages in thread
From: Joel C. Salomon @ 2007-04-26 19:09 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 4/26/07, geoff@plan9.bell-labs.com <geoff@plan9.bell-labs.com> wrote:
> You want
> sys=hymie dom=hymie.cc.cooper.edu
> dom is the FQDN of sys.
Thanks.
> What's the output of
term% cat /net/ether0/addr
00d059ca4e8eterm%
-- same as in the ether= line in /lib/ndb.local, and is correct for my
network card.
> ndb/query sys $sysname
term% ndb/query sys $sysname
ip=199.98.17.238 sys=hymie dom=hymie.cc.cooper.edu ether=00d059ca4e8e
dns=paperweight dnsdom=paperweight.cooper.edu ntp=ntp.cooper.edu
ipmask=255.255.248.0 ipgw=199.98.16.1
term% ndb/query sys paperweight
ip=199.98.16.9 sys=paperweight dom=paperweight.cooper.edu
> ? Are you starting dns after running ipconfig?
That's the way it is in /rc/bin/termrc; I uncommented the ipconfig
line and edited it to read:
ip/ipconfig -g 199.98.16.1 ether /net/ether0 199.98.17.238 255.255.248.0 >…
Is that right?
--Joel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 18:19 ` Joel C. Salomon
2007-04-26 18:43 ` geoff
@ 2007-04-26 19:23 ` Joel C. Salomon
2007-04-26 19:40 ` Russ Cox
1 sibling, 1 reply; 11+ messages in thread
From: Joel C. Salomon @ 2007-04-26 19:23 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 4/26/07, Joel C. Salomon <joelcsalomon@gmail.com> wrote:
> My /lib/ndb/local includes the following lines:
> …
> ip=199.98.17.238 sys=hymie dom=hymie.cc.cooper.edu
> ether=00d000d059ca4e8e
> dns=paperweight dnsdom=paperweight.cooper.edu
> ntp=ntp.cooper.edu
> ipmask=255.255.248.0 ipgw=199.98.16.1
>
> ip=199.98.16.9 sys=paperweight dom=paperweight.cooper.edu
> …
Should I be using paperweight's IP address when referring to it in
hymie's entry?
--Joel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 19:23 ` Joel C. Salomon
@ 2007-04-26 19:40 ` Russ Cox
0 siblings, 0 replies; 11+ messages in thread
From: Russ Cox @ 2007-04-26 19:40 UTC (permalink / raw)
To: 9fans
> Should I be using paperweight's IP address when referring to it in
> hymie's entry?
no need
russ
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 19:09 ` Joel C. Salomon
@ 2007-04-26 19:48 ` geoff
2007-04-26 20:07 ` Joel C. Salomon
0 siblings, 1 reply; 11+ messages in thread
From: geoff @ 2007-04-26 19:48 UTC (permalink / raw)
To: 9fans
ip/ipconfig -g 199.98.16.1 ether /net/ether0 199.98.17.238 255.255.248.0 >…
That should be fine as long as you're running the latest ipconfig or
an old one. For a few days, ipconfig needed an explicit verb, like this:
ip/ipconfig -g 199.98.16.1 ether /net/ether0 add 199.98.17.238 255.255.248.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 19:48 ` geoff
@ 2007-04-26 20:07 ` Joel C. Salomon
2007-04-26 20:23 ` geoff
0 siblings, 1 reply; 11+ messages in thread
From: Joel C. Salomon @ 2007-04-26 20:07 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 4/26/07, geoff@plan9.bell-labs.com <geoff@plan9.bell-labs.com> wrote:
> For a few days, ipconfig needed an explicit verb, like this:
> ip/ipconfig -g 199.98.16.1 ether /net/ether0 add 199.98.17.238 255.255.248.0
Nope, that doesn't fix anything.
Is there some way to invoke ndb/dns so it tells me more than "can't
find my ip address"?
--Joel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] dns suddenly not working
2007-04-26 20:07 ` Joel C. Salomon
@ 2007-04-26 20:23 ` geoff
0 siblings, 0 replies; 11+ messages in thread
From: geoff @ 2007-04-26 20:23 UTC (permalink / raw)
To: joelcsalomon, 9fans
myipaddr() calls readipifc(), so "cat /net/ipifc0/?/status" might be
revealing, particularly if you put it in termrc just before starting dns.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-04-26 20:23 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26 0:07 [9fans] dns suddenly not working Joel C. Salomon
2007-04-26 0:17 ` geoff
2007-04-26 0:23 ` Steve Simon
2007-04-26 18:19 ` Joel C. Salomon
2007-04-26 18:43 ` geoff
2007-04-26 19:09 ` Joel C. Salomon
2007-04-26 19:48 ` geoff
2007-04-26 20:07 ` Joel C. Salomon
2007-04-26 20:23 ` geoff
2007-04-26 19:23 ` Joel C. Salomon
2007-04-26 19:40 ` Russ Cox
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).