[KLUG Members] Mailog error 127.0.0.1: Host not found?!#

Peter Buxton members@kalamazoolinux.org
Tue, 2 Mar 2004 17:46:23 -0500


On Tue, Mar 02, 2004 at 05:13:12PM -0500, Bob Kanaley was only escaped
   alone to tell thee:

> hosts:      files nisplus nis dns
> <snip>
> 
> [root@dmz02 /etc]# cat host.conf
> order hosts,bind
> multi on

If your MTA doesn't specifically use NSS services, this won't change a
thing.

> [root@dmz02 /etc]# cat resolv.conf
> search agdia.com
> # nameserver 207.32.234.10
> nameserver 207.32.234.11
> nameserver 209.172.192.26
> nameserver 209.172.194.2
> nameserver 209.172.192.2
> nameserver 209.84.160.105
> nameserver 0.0.0.0
> # nameserver 127.0.0.1
> # nameserver 192.168.2.2

Scary resolv.conf. That's a lot of nameservers. And what exactly does
"nameserver 0.0.0.0" do for you??

> [root@dmz02 /etc]# nslookup localhost
> *** Can't find server name for address 207.32.234.11: No response from
> server
> Server:  ns1.ismg.net
> Address:  209.172.192.26
> 
> Name:    localhost.agdia.com
> Address:  127.0.0.1

Well, it is almost correct.  Someone misconfigured their DNS. It should
return 127.0.0.1 for "localhost." (nore the end period) and nothing for
localhost.blah.blah.  Domains do not have a designated machine at the
loopback address.

grimace:05:33:46:~$ dig localhost

; <<>> DiG 9.2.3 <<>> localhost
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3467
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;localhost.                     IN      A

;; ANSWER SECTION:
localhost.              21600   IN      A       127.0.0.1

;; AUTHORITY SECTION:
localhost.              21600   IN      NS      localhost.

;; ADDITIONAL SECTION:
localhost.              21600   IN      AAAA    ::1

;; Query time: 4 msec
;; SERVER: 192.168.69.1#53(192.168.69.1)
;; WHEN: Tue Mar  2 17:36:55 2004
;; MSG SIZE  rcvd: 85



-- 
Contrariwise, if it was so, it might be; and if it were so, it
would be; but as it isn't, it ain't. That's logic. -- L. Carroll