LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   No Answer with DIG (https://www.linuxquestions.org/questions/linux-server-73/no-answer-with-dig-726574/)

amplifire 05-17-2009 09:14 AM

No Answer with DIG
 
I setup a DNS and tried to dig it but the reply is
Query:1 Answer:0 Status:Servfail
whats this Servfail? I even looked at the logs and found no error. Even when i checked my /etc/named.conf and /var/named/for, /var/named/rev file using
#named-checkconf /etc/named.conf
and
#named-checkzone mydomain.com /var/named/for and /var/named/rev
and
#dnsdomainname
I found that they were correct. But i am unable to dig my nameserver using
#dig -x 202.78.173.26
or
#dig ns1.mydomain.com
or
#host -al 202.78.173.26

What could be the problem? Humble suggestions required.

bathory 05-18-2009 02:28 AM

First of all check /etc/resolv.conf and make sure that your nameserver is the first in the list ,or use "dig mydomain.com @ns1.mydomain.com" to use your dns for your queries.
Without config files it's difficult to try to find, what the problem is.
Note also that the following dig output (nxdomain):
Quote:

dig -x 202.78.173.26

; <<>> DiG 9.6.1b1 <<>> -x 202.78.173.26
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 62017
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;26.173.78.202.in-addr.arpa. IN PTR

;; AUTHORITY SECTION:
173.78.202.in-addr.arpa. 8899 IN SOA ns1.hellorainbow.com. postmaster.hellorainbow.com. 1108639242 10800 3600 604800 38400
means that most likely you're not authoritative to the reverse zone, unless you own hellorainbow.com. You must ask your ISP to delegate you the zone for the subnet you own.

amplifire 05-18-2009 07:58 AM

Ok thanx i got the answer. Its the ISP who is being digged.
Thanx for the suggestion.


All times are GMT -5. The time now is 12:14 PM.