From owner-freebsd-questions Thu Aug 7 21:42:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA21421 for questions-outgoing; Thu, 7 Aug 1997 21:42:09 -0700 (PDT) Received: from mail.san.rr.com (mail-atm.san.rr.com [204.210.0.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA21416 for ; Thu, 7 Aug 1997 21:42:06 -0700 (PDT) Received: (from uucp@localhost) by mail.san.rr.com (8.7.6/8.7.3) id VAA11864; Thu, 7 Aug 1997 21:40:10 -0700 (PDT) Message-Id: <199708080440.VAA11864@mail.san.rr.com> Received: from dt5h1n61.san.rr.com(204.210.31.97) by mail via smap (V1.3) id tmp011759; Thu Aug 7 21:39:53 1997 From: "Studded" To: "David Kelly" Cc: "freebsd-questions@FreeBSD.ORG" Date: Thu, 07 Aug 97 21:39:30 -0800 Reply-To: "Studded" Priority: Normal X-Mailer: PMMail 1.92 For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: DNS Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 8 Aug 1997 09:44:19 +0930 (CST), Greg Lehey wrote: >David Kelly writes: >> Hi, >> >> We're an ISP using FreeBSD 2.1.7.1 on our servers. We have a problem with >> our DNS. Our domain is SAMARA.CO.ZW When doing an nslookup for anything >> within that domain (e.g. mail.samara.co.zw) it appears that the lookup is >> done outside our network. If we disconnect our link to our upstream >> provider, we can't look up anything inside our network. [snip] >> Any ideas on the source of the problem? The /etc/resolv.conf file contains: >> >> domain samara.co.zw >> nameserver 196.2.64.1 <- samara.co.zw = 196.2.64.1 >> nameserver 147.28.0.34 >> nameserver 204.59.144.222 >> nameserver 204.117.214.10 > >This is a funny-looking resolv.conf. You're running a local name >server, but three of the addresses appear to be pointing to different >continents. It shouldn't cause timeouts, but it won't cause blinding >speed either. The domain keyword shouldn't be necessary, but there isn't anything wrong with specifying backup name servers "just in case." First off though, 'man resolv.conf' will tell you that you are only allowed 3 nameserver keywords. Secondly, if you are going to specify the local machine as a resolver, you should use 127.0.0.1 as the address, and make sure you have a primary/master db file for the 0.0.127.in-addr.arpa domain (this is usually localhost.rev). There is a script in /etc/namedb called make-localhost that'll do this for you. :) If you don't do this, a lot of software (nslookup for example) will try to resolve the PTR record for the name server you have. By referring to a dns that you are primary for, you save this ugly step. >Where is this file? You shouldn't have it on any system which runs a >name server. If this is really *on* samara.co.zw, remove or rename >it, and try again. If it still doesn't work, let's see your >/etc/named.boot file. Removing it will solve the problem too, since FreeBSD by default looks at localhost for the resolver. But if you want to specify backup name servers, follow the steps outlined above. Hope this helps, Doug Do thou amend they face, and I'll amend my life. -Shakespeare, "Henry V"