in nsswitch.conf , normally use:
hosts: files dns
can you ping to a machine inside your network?
It could be firewall blocking ping or remote machine "disable" reponse to ping.
Main Topics
Browse All TopicsI have an IRIX 6.5 O2 and i'm having problems with dns resolution. I am able to use nslookup from the commandline and it works fine, but when I try to ping the same host that I just did a lookup on it says that it can't resolve that host.
I have two dns servers in /etc/resolve.conf and he's my nsswitch.conf file.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You have dns as a name service on an awful lot of maps in your nsswitch.conf file, most of them are not
appropriate. The dns entry should probably only be on the hosts entry.
Also, since you appear to be using NIS, you should try just setting the hosts line to "files nis". Most NIS
servers will automatically do a DNS query for the hosts naming service, serving as a proxy.
Sorry, my specialty is Solaris, not Irix. Okay, if I understand you, then you do not have any NIS servers, right?
Then you should put the nsswitch.conf file back to its original form, with all of the entries saying files,
except the hosts entry which you should make "file dns". Then do the killall as it says in the file.
Once you do that, give it a try. IF it still doesn't work, try putting the host and ip in the hosts file, do the killall
and try again. If it works that time, then the name service is working, but the DNS part is not. If it still
soesn't work, there is a bigger problem.
1) Do you have a file $HOME/.nslookuprc ? If so, what's in it? Perhaps that file is configured
so as to get nslookup to work in ways that ping isn't working.
2) Try doing the attached code snippet and reporting the results. The grep for double
quote just picks off those par lines that happen to have quoted strings, which is probably
all we need here.
3) On IRIX, ping, but not nslookup, uses the ns cache. I'll wager that cache is missing ad2.com.
Are the *.mdbm files beneath /var/ns/cache current? See the file /var/ns/cache/README
for some hints on how to get force a rebuild of these files.
4) One more thing -- the 'hosts' entry in the /etc/nsswitch.conf file on my IRIX box is:
hosts dns nis files
I don't know, but perhaps adding the 'nis files' values (and sending the HUP
signal to nsd) would help.
And correction to the code snippet for (2) in my previous reply ... I left off the grep;
here it is corrected (that grep is looking for a double quote, entered as three chars,
single-quote, double-quote, single-quote.)
Did your /var/ns/cache/hosts.byname
Is your nsd daemon running?
Do you have reasonable stuff below /ns:
find /ns -type d | grep host
On my Irix box (edited to pretend I'm in the example.com domain), this find
command produces the output:
/ns/.local/hosts
/ns/.local/hosts/.dns
/ns/.local/hosts/.nis
/ns/.local/hosts/.files
/ns/.local/hosts.byaddr
/ns/.local/hosts.byaddr/.d
/ns/.local/hosts.byaddr/.n
/ns/.local/hosts.byaddr/.f
/ns/.local/hosts.byname
/ns/.local/hosts.byname/.d
/ns/.local/hosts.byname/.n
/ns/.local/hosts.byname/.f
/ns/.local/netgroup.byhost
/ns/.local/netgroup.byhost
/ns/example.com/hosts
/ns/example.com/hosts/.nis
/ns/example.com/hosts/.dns
/ns/example.com/hosts.byad
/ns/example.com/hosts.byad
/ns/example.com/hosts.byad
/ns/example.com/hosts.byna
/ns/example.com/hosts.byna
/ns/example.com/hosts.byna
/ns/example.com/netgroup.b
/ns/example.com/netgroup.b
> sorry for the delay in responding
Actually, that's no problem. I probably should have stated this in my last reply ... I have
roughly reached the limit of my knowledge or available time to assist on this question.
Since it involved a system, Irix, that I had access to, I thought it worth my trying to be
of assistance, but I don't work on Irix now and have never been a networking expert,
so there are unfortunate limits to my usefulness. Sorry.
Perhaps my questions in my previous message will lead you in useful directions.
Business Accounts
Answer for Membership
by: sjm_eePosted on 2008-02-14 at 16:50:35ID: 20898578
Please post a transcript of the session.