LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   DNS problem (https://www.linuxquestions.org/questions/linux-enterprise-47/dns-problem-534640/)

sachin1361 03-04-2007 11:48 PM

DNS problem
 
I have one linux ES-4 edition....I have configured the dns resolv.conf file,named.conf file and relevant zone files.When i run the host command :

[root@localhost named]# host 172.17.0.206
206.0.17.172.in-addr.arpa domain name pointer mango.com.
206.0.17.172.in-addr.arpa domain name pointer ftp.mango.com.
206.0.17.172.in-addr.arpa domain name pointer www.mango.com
.

root@localhost named]# ping www.mango.com
PING www.mango.com.mango.com (172.17.0.206) 56(84) bytes of data.
64 bytes from ftp.mango.com (172.17.0.206): icmp_seq=0 ttl=64 time=0.017 ms



ping successfull : But when I RUN NSLOOKUP COMMAND:

[root@localhost named]# nslookup
> www.mango.com
Server: 172.17.0.206
Address: 172.17.0.206#53

** server can't find www.mango.com: NXDOMAIN




Why is it so ????????????????

Host command is running,ping is successful then why not nslookup..

following is th entries in /etc/hosts file:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

Wells 03-06-2007 10:53 AM

What happens if you do the following:

Code:

nslookup www.mango.com.mango.com
If you get a result from this, I would have to say that something is misconfigured in your bind configuration.

sachin1361 03-06-2007 11:43 PM

dns
 
thanx..prob solved

archtoad6 03-08-2007 08:35 AM

Care to give us a few more details of just what was wrong & how you fixed it? It might help others who have the same problem.

post 1300

doublejoon 03-15-2007 02:27 PM

sounds like DNS TTL delay

sachin1361 03-17-2007 12:51 AM

ok
 
well.. a minor dns conf problem..

In dns zone conf file, I forgot to enter dot(.) after domain name. AlWAYS BE REMEBER TO ADD DOT (.)AFTER DOMAIN NAME OR EACH ZONE ENTRIES owise manytimes genuine configurations may not work. Same happened with me. I checked each n everything, restarted the computer many times, studied dns docs many times, but at last, prob was frm my side, only a silly error, a trailing dot was missing.


All times are GMT -5. The time now is 07:44 AM.