From mboxrd@z Thu Jan 1 00:00:00 1970 From: "William Staniewicz" To: 9fans@cse.psu.edu Subject: Re: [9fans] dns not running Message-ID: <20001204182820.A257@localhost.local> References: <20001203011634.2C821199EA@mail.cse.psu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20001203011634.2C821199EA@mail.cse.psu.edu>; from rsc@plan9.bell-labs.com on Sat, Dec 02, 2000 at 08:16:16PM -0500 Date: Mon, 4 Dec 2000 18:28:20 +0100 Topicbox-Message-UUID: 35942d0a-eac9-11e9-9e20-41e7f4b1d025 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