Date: Mon, 8 Sep 1997 10:07:56 +0930 From: Greg Lehey <grog@lemis.com> To: empey@integral.on.ca Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DNS and "local host name" Message-ID: <19970908100756.20253@lemis.com> In-Reply-To: <26F3A33E89@integral.on.ca>; from David Empey on Sun, Sep 07, 1997 at 06:30:35PM -0500 References: <26F3A33E89@integral.on.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 07, 1997 at 06:30:35PM -0500, David Empey wrote: > Greetings: > > I am getting the following error when I try to make DNS enquiries > from my system: > > Can't find servername for address 127.0.0.1: No response from > server. > > I'm running a cache only DNS and am on the net successfully (I can > ping using IP numbers). You still need an entry for localhost. Try this: 1. Add the following line to /etc/named.boot primary 0.0.127.in-addr.arpa localhost.reverse 2. Create a file localhost.reverse in the directory specified in your named.boot. Put the following into it: ; Reverse mapping for localhost domain ; ; $Id: localhost.reverse,v 1.1 1997/01/09 14:29:34 grog Exp $ ; 0.0.127.in-addr.arpa. IN SOA DNS.MYFQDN. DNS.MYFQDN. ( 97010901 ; Serial (date, 2 digits version of day) 86400 ; refresh (1 day) 7200 ; retry (2 hours) 604800 ; expire (7 days) 86400 ) ; minimum (1 day) IN NS DNS.MYFQDN. 0.0.127.in-addr.arpa. IN NS DNS.MYFQDN. 1.0.0.127.in-addr.arpa. IN PTR localhost.MYFQDN Replace MYFQDN with your fully qualified domain name (would appear to be integral.on.ca), and DNS with the name of the system running the name server. Send a sighup to your named, and things should be fine. Greg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970908100756.20253>