[KLUG Members] Mailog error 127.0.0.1: Host not found?!#
Bob Kanaley
members@kalamazoolinux.org
Tue, 2 Mar 2004 17:13:12 -0500
I must be missing something simple here, but I can't seem to find it.
The resolver on my SMTP server seems to be running out to an external name
server to resolve localhost when I have localhost in /etc/hosts,
/etc/host.conf has order host,bind, and nsswitch has files listed first for
hosts? I pushed my DNS out to my web site host, so I no longer have to run
bind on this box in my DMZ.
Here is the error message from my mailog:
Feb 25 01:03:33 dmz02 postfix/smtp[24706]: 86726C44E: to=<rvk@agdia.com>,
relay=none, delay=76, status=deferred (Name service error for 127.0.0.1:
Host not found, try again)
Here are the config files for my resolver:
[root@dmz02 /etc]# cat nsswitch.conf
# /etc/nsswitch.conf
<snip>
hosts: files nisplus nis dns
<snip>
[root@dmz02 /etc]# cat host.conf
order hosts,bind
multi on
[root@dmz02 /etc]# cat hosts
127.0.0.1 localhost.localdomain localhost
207.32.224.43 dmz02.agdia.com
[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
[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
Any help would be appreciated.
Regards,
Bob
Robert V. Kanaley
Manager Information Systems
Agdia, Inc.
rvk@agdia.com
http://www.agdia.com