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
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?