Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2012 11:08:47 +0100
From:      Patrick Lamaiziere <patfbsd@davenulle.org>
To:        freebsd-questions@freebsd.org
Subject:   no more localhost name ?
Message-ID:  <20121221110847.3f08a34e@mr129166>

next in thread | raw e-mail | index | archive | help
Hello,

(fresh 9.1-STABLE/amd64)

Here localhost or 127.0.0.1 is not resolved anymore. I can see twith
tcpdump hat a DNS request is sent to dns server.

This is something new because a test case used to test name
resolution on a home made application now fails.

$ host localhost
Host localhost not found: 3(NXDOMAIN)

$ host 127.0.0.1
Host 1.0.0.127.in-addr.arpa. not found: 3(NXDOMAIN)

The box uses dhclient.

/etc/hosts
::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain

/etc/resolv.conf
# Generated by resolvconf
search univ-rennes1.fr
nameserver 129.20.128.2
nameserver 129.20.128.39
nameserver 129.20.128.49

/etc/nsswitch.conf
group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

The configuration looks good... Any idea?

Thanks regards.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121221110847.3f08a34e>