From owner-freebsd-questions@FreeBSD.ORG Fri Jun 18 13:03:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49DB816A4CE for ; Fri, 18 Jun 2004 13:03:51 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 069CE43D1F for ; Fri, 18 Jun 2004 13:03:51 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id 204BD69A39; Fri, 18 Jun 2004 09:03:41 -0400 (EDT) Date: Fri, 18 Jun 2004 09:03:39 -0400 From: Bill Moran To: "Bradley McGuigan" Message-Id: <20040618090339.1b027932.wmoran@potentialtech.com> In-Reply-To: References: Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@FreeBSD.org Subject: Re: freebsd and dns X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2004 13:03:51 -0000 "Bradley McGuigan" wrote: > I hope someone out there can give me a hand with this important query!!!!!! > > My company has a freebsd server that is used as a secondary DNS server. Our > ISP also get our DNS entries from this server (they shadow them on thier > servers). Since this morning, no-one has been able to send email to us, > connect via vpn or anything else for that matter. External connections from > the company are workign fine (i.e. we can send emails - just not recieve > them!) Our ISP has said that they have checked and their shadow dns servers > have no information in them. They have attempted to pick up this information > from my freebsd server but supposedly this has returned no information. > > I have looked in the /usr/local/etc/namedb directory and can see 2 fioles > that contain the dns information: db.company.co.uk.external and > db.company.co.uk.internal > > Is there anything I have to do to get these picked up? I assume it was working before? Did you change anything? > My freebsd/unix > knowledge is basic unfortunatley. Nothing quite as frustrating as being expected to admin a system you know very little about! > Is it maybe that the dns service is not > started? At the console, enter "sockstat -4 | grep 53". If that displays lines showing named listening on interfaces, then it's running, if not, then it's failed. Check /var/log/messages for information about bind starting up or shutting down. This isn't the _solution_ to your problem, but if bind isn't started, rebooting the machine should cause it to restart. Just log in as root and enter "reboot" If that gets things working again, then you need to do some hunting to figure out why named stopped. If named just won't start, check /var/log/messages for lines about named. The most common problem I see with this is that people change the config files, and make a typo and named then doesn't start, or refuses to load certain DNS zones. /var/log/messages will have details about what syntax errors were encountered in this case. > Am I looking in the wrong place for the DNS files? Possibly. Bind config files are usually in /etc/namedb on FreeBSD. But if a different version of Bind was installed from ports, the location you describe would be correct for its config. -- Bill Moran Potential Technologies http://www.potentialtech.com