On Wed, 2002-12-18 at 18:40, Michael Heironimus wrote:
> On Wed, Dec 18, 2002 at 02:35:35PM -0500, Mark L. Kahnt wrote:
> > That was the first reboot in five weeks, and when the system came back,
> > it couldn't find "localhost". It could find hosehead.dyndns.org and its
> > various morphs (hosehead.dyndns.ws and mlkahnt.dyndns.org,) and it had
> > no problem with 127.0.0.1, 192.168.1.1 (eth1) and 192.168.1.3 (eth0),
> > either. /etc/hosts was unchanged, but /etc/resolv.conf had been reduced
> > to just two entries - my ISPs nameservers, each preceded by a blank
> > line, leaving me to believe that some program is doing the rewrite on
> > bringing up the network link (I suspect the culprit is "usepeerdns" in
> > /etc/ppp/peers/dsl-provider, although that has been there for over seven
> > months.)
>
> This may be a silly thing to ask, but do you get the right answers when
> you nslookup localhost and 127.0.0.1? And if not, do you have them
> defined in your zone files (you should)?
>
> --
> Michael Heironimus
Excellent to ask - as I warned earlier, there was room for things like
this to happen with my brain getting muddied by all of the various
symptoms I'm fighting. That said, I get:
> 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
1.0.0.127.in-addr.arpa name = localhost.
> localhost
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: localhost.hosehead.dyndns.org
Address: 127.0.0.1
------------------------------------------
The localhost.hosehead.dyndns.org wasn't a problem before the big
restart, and I haven't found anything in the documentation to cause that
to *not* happen. /etc/bind/db.local reads:
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
5
604800
86400
2419200
604800 )
;
@ IN NS localhost.
@ IN A 127.0.0.1
Administrator.localhost. IN RP
kahnt.hosehead.dyndns.org. Administrator
Hosehead.localhost. IN HINFO i686 Linux
Mail.localhost. IN MX 1 hosehead.dyndns.org
-----------------------------------------------------
and /etc/bind/db.127 reads:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA hosehead.dyndns.org. root.hosehead.dyndns.org. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns.hosehead.dyndns.org.
1.0.0 IN PTR localhost.
-----------------------------------------------------
and for the heck of it, this is /etc/hosts:
127.0.0.1 localhost hosehead
192.168.1.1 hosehead.dyndns.org hosehead
205.189.48.3 adan.kingston.net
205.189.48.6 border1.kingston.net
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
::FFFF:127.0.0.1 localhost
::FFFF:192.168.1.1 hosehead.dyndns.org hosehead
---------------------------------------------
Hopefully I haven't buggered anything in any of these, but most have
been through at least a couple of system restarts (particularly all of
the bind stuff) and so shouldn't be functioning differently (I hope).
--
Mark L. Kahnt, FLMI/M, ALHC, HIA, AIAA, ACS, MHP
ML Kahnt New Markets Consulting
Tel: (613) 531-8684 / (613) 539-0935
Email: kahnt@hosehead.dyndns.org
Attachment:
signature.asc
Description: This is a digitally signed message part