1756613 Members
2742 Online
108848 Solutions
New Discussion юеВ

nsslookup

 
SOLVED
Go to solution
Rafael Casero
Regular Advisor

nsslookup

I'm currently running Redhat 3.0

I cannot resolve DNS.. I have checked the following files.

/etc/hosts and is showing my loopback address.

/etc/resolve.conf and is showing both of my dns server

Also checked the /etc/nsswitch.conf and is showing "hosts: dns"

Help!!!!!!


8 REPLIES 8
Bill Thorsteinson
Honored Contributor
Solution

Re: nsslookup

reolve.conf should look something like

search yourdomain.com com org net
nameserver 10.0.0.2
nameserver 10.0.2.2

Can you ping your DNS servers?
Can you telnet to your DNS servers on port 53?

You may want nsswitch to read
hosts: files dns
or
hosts: dns files

Did you set up a firewall? If so you need to
let traffic out to port 53.

Try
nslookup yahoo.com 10.0.0.2
or
host -a yahoo.com 10.0.0.2
where 10.0.0.2 is the ip of one of your
nameservers.

Rafael Casero
Regular Advisor

Re: nsslookup

I can ping the dns server using ip.. will not resolve using FQDNM.

/etc/resolve.conf looks good..

I can resolve Yahoo.com
[root@abc-dexlx10 root]# nslookup yahoo.com xxx.xxx.xx.xx
Server: xxx.xxx.xx.xx
Address: xxx.xxx.xx.xx#53

Non-authoritative answer:
Name: yahoo.com
Address: 66.94.234.13
Name: yahoo.com
Address: 216.109.112.135


Rafael Casero
Regular Advisor

Re: nsslookup

I did not install Firewall I disable it while installing the product..
Rafael Casero
Regular Advisor

Re: nsslookup

If I run nslookup hostname.domainname it works.

Where can I add the Domainname so I can resolve with the FQDNM...

Alexander Chuzhoy
Honored Contributor

Re: nsslookup

the domain name should be added to /etc/resolv.conf file
search domainname anotherdomainname thirddomainname

Hope this example is helpful.
Rafael Casero
Regular Advisor

Re: nsslookup

Can you give me a example on how to add this line...

I currently have

[root@avm-mialx07 bin]# cat /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xx
Rafael Casero
Regular Advisor

Re: nsslookup

I was able to correct it..

I added a line under in /etc/resolv.conf

[root@xxx-xxxxx root]# cat /etc/resolv.conf
domain xxxx.com
nameserver xxx.xx.xx.xx
nameserver xxx.xx.xx.xx

Thanks, all for the help..


Alan_152
Honored Contributor

Re: nsslookup

also check your /etc/nsswitch.conf file. Make sure this line exists:

hosts: files dns