Dear all,
I'm facing a strange problem : my solaris server use DNS to resolve a host first before using files.
I check the nsswitch.conf and see that the setting is correct :
hosts : files dns
ipnodes: files dns
My hosts file : /etc/hosts
192.168.1.1 abcserver
But when I ping : ping -s abcserver
64 bytes replied from abcserver.com.vn (72.xxx.xxx.xxx)
64 bytes replied from abcserver.com.vn (72.xxx.xxx.xxx)
With 72.xxx.xxx.xxx is an internet IP
When I use command : getent hosts abcserver
The result is OK : abcserver 192.168.1.1
So, I don't know what the problem was ? Please help me to fix It.
Best regards.
Our community of experts have been thoroughly vetted for their expertise and industry experience.