troubleshooting Question

My Solaris System lookup DNS first instead of files

Avatar of sacombank-sbs
sacombank-sbs asked on
Unix OSDesktops
25 Comments1 Solution762 ViewsLast Modified:
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        abcserver

  But when I ping :   ping -s  abcserver
                  64 bytes replied from  (
                  64 bytes replied from  (
     With is an internet IP
  When I use command : getent hosts abcserver
     The result is OK :   abcserver

  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.

Join our community to see this answer!
Unlock 1 Answer and 25 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 25 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros