Hello everybody,
I've been trying to make a Fedora Core 11 box to resolve using its hosts file but it just wont.
The /etc/hosts file reads:
Code:
127.0.0.1 localhost.localdomain localhost
172.16.100.132 server.domain.com server
I've checked the /etc/host.conf file and it reads:
Code:
multi on
order hosts,bind
And the nsswitch.conf file reads:
When I run the host `hostname -f` it still shows the DNS IP number and not the address listed on the hosts file:
Code:
server.domain.com has address aaa.bbb.ccc.ddd
Tried rebooting and still no change, but when I ping the hostname, it uses the hosts address.
Code:
[root@server etc]# ping `hostname -f`
PING server.domain.com (172.16.100.132) 56(84) bytes of data.
64 bytes from server.domain.com (172.16.100.132): icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from server.domain.com (172.16.100.132): icmp_seq=2 ttl=64 time=0.025 ms
64 bytes from server.domain.com (172.16.100.132): icmp_seq=3 ttl=64 time=0.023 ms
Any ideas?