9fans archive / 2000 / 12 / 9 /    prev next

From: "Russ Cox" <rsc@pla...>
Subject: Re: [9fans] dns not running
Date: Sat, 2 Dec 2000 20:16:16 -0500

Your problem is not that you're not running ip/ipconfig.
It is, as you point out, that dns does not start at boot.
This is by design -- no ip address, no dns.  After using
ip/ppp to dial your ISP, you should start dns with ndb/dns -r
(perhaps set DNSSERVER too).  When you're done, kill it off.

One other thing: in order for this to work you need to
make the following change to /sys/src/libndb/dnsquery.c

diff dnsquery.c odnsquery.c
44c44
< 		if(mount(fd, net, MBEFORE, "") < 0)
---
> 		if(mount(fd, net, MAFTER, "") < 0)

That's line 44, change MAFTER to MBEFORE.

Then 
	cd /sys/src/libndb
	mk install
	mk clean
	cd /sys/src/cmd/ndb
	mk install
	mk clean

That will get you a new ndb/cs that will notice the new
dns once you start it.  (That fix will be in the next
release.)

Russ