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

 
ASKER CERTIFIED SOLUTION
neteducation

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