On Wed, 12 Nov 2003 13:46:52 -0500 Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Kurt Roeckx <Q@ping.be> writes:
> > It's always a good idea to put localhost into dns too.
>
> Yeah, but "localhost" *is* resolving as something on Kiyoshi's
> machine, else a different error message would have appeared.
>
> I'm wondering just what it resolved to though --- maybe we should
> have made the error messages more verbose, or added a debug-level
> message to show what addresses are being tried.
>
I tried nslookup on Kiyoshi's machine.
--------------------------------
$ nslookup localhost
Server: name.server.mydomain
Address: xxx.xx.xx.xxx : : :
(failed test)
^C
$ nslookup 127.0.0.1
Server: mail.nagoya2.jrc.or.jp
Address: 172.20.12.11
Name: localhost
Address: 127.0.0.1
(succesful test)
$
--------------------------------
/etc/resolv.conf
domin mydomain
nameserver xxx.xx.xx.xxx
/etc/nsswitch.conf
hosts: files dns
ipnodes: files dns
--------------------------------
Is it necessary to start a DNS server to bind 'localhost' in Kiyoshi's machine?
Reference URL
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsunone/3877
--
Kiyoshi Sawada