DNS Name lookup test failed

Posted on 2004-03-23
Medium Priority
Last Modified: 2010-03-17
Hi All.

I am able to resolve dns names using nslookup on my linux but if I ping a domain name it says unkown host..!!!!!!

any clue???
Question by:last

Expert Comment

ID: 10656139
If you ping by ip then does that work ?

Author Comment

ID: 10657017
yes I can ping the IP.

Expert Comment

ID: 10657059
Then it should work if you can do this things:
1. Do a nslookup of a ip.
2. Ping the ip
then the ping domain name will work too, because it does just these steps.

LVL 40

Accepted Solution

jlevie earned 100 total points
ID: 10659221
Check the contents of /etc/resolv.conf and make sure that it specifies valid "nameserver"s. Also check /etc/nsswitch.conf to be sure that "hosts" includes at least "files dns".
LVL 14

Assisted Solution

pablouruguay earned 100 total points
ID: 10661108
here is an example of /etc/resolv.conf

[pablo@omega Mail]$ cat /etc/resolv.conf
search antel.com

and is nsswitch,.conf you need to have this

#hosts:     db files nisplus nis dns
hosts:      files dns


Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question