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

From: "William Staniewicz" <wstan@pla...>
Subject: Re: [9fans] dns not running
Date: Mon, 4 Dec 2000 18:28:20 +0100

This worked very nicely and got dns running. However, how do
I kill it off? When I use "kill dns" I get,

	echo kill >/proc/105/note

Then when I check with "ps" ... it shows dns as still there.

Note: In the past, to kill a process or app running in the
window I simply "killed" the window with the mouse. I know this
is probably not the right way to do things but it seems
to have worked up to now. What is the right way to do it?

Bill

On Sat, Dec 02, 2000 at 08:16:16PM -0500, Russ Cox wrote:
> 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