I’ve added an entry in /etc/hosts for the host san2.example.com…
san1:~ # grep san2 /etc/hosts
192.268.1.2 san2.example.com san2
…and verified that the resolver is configured to check /etc/hosts first (by way of /etc/nsswitch.conf)…
[CODE]san1:~ # grep dns /etc/nsswitch.conf
dns Use DNS (Domain Name Service)
hosts: files dns
networks: files dns[/CODE]
…but the resolver still isn’t resolving the hostname correctly.
san1:~ # ping san2.example.com
ping: unknown host san2.example.com
Have I overlooked something?
Can you ping the ip address? Domain name setup in YaST Network Settings?[/color]
No no no, this (the bad IP) is the end. Impossible IP addresses will
never be resolved properly and, as you’re pointing out, this is an
impossible IP address.
FWIW: I duplicated the symptom exactly. Putting in a valid IP address
caused things to resolve nicely. I’d guess if you could look at the
resolver stuff in the system you’d see it choke on the bad IP address and
then move on.