From owner-freebsd-questions Mon Sep 8 15:39:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA10922 for questions-outgoing; Mon, 8 Sep 1997 15:39:54 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA10915 for ; Mon, 8 Sep 1997 15:39:49 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id IAA02798; Tue, 9 Sep 1997 08:39:15 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id IAA15131; Tue, 9 Sep 1997 08:09:14 +0930 (CST) Message-ID: <19970909080913.01841@lemis.com> Date: Tue, 9 Sep 1997 08:09:13 +0930 From: Greg Lehey To: empey@integral.on.ca Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DNS and "local host name" References: <26F3A33E89@integral.on.ca>; <19970908100756.20253@lemis.com> <7C7DE4875@integral.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <7C7DE4875@integral.on.ca>; from David Empey on Mon, Sep 08, 1997 at 11:39:14AM -0500 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 08, 1997 at 11:39:14AM -0500, David Empey wrote: >>> 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. > > The entry and file mentioned are both in place to no avail. This all > worked on the system before an upgrade to a larger HD (I copied the > files in question to a floppy and then to the new system). I'm > stumped! What does your routing table look like? It should look something like: $ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 139.130.136.129 UGSc 61 3683 tun0 127.0.0.1 127.0.0.1 UH 0 556 lo0 139.130.136.129 139.130.136.133 UH 60 0 tun0 192.109.197.134 0:0:c0:44:a5:68 UHLW 10 155660 ep0 790 192.109.197.137 0:a0:24:37:d:2b UHLW 2 9664 lo0 Note particularly the entry for 127.0.0.1. If it's not there, do: # ifconfig lo0 127.0.0.1 That's not the end of it; let me know if that was the problem first. Greg