HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   How to check if DNS is functioning (http://www.howtoforge.com/forums/showthread.php?t=1473)

new_bee05 30th November 2005 07:38

How to check if DNS is functioning
 
How do I check if my Debian DNS Server is functioning correctly.

Ovidiu 30th November 2005 08:20

well I sugest testing the domains that your DNS server is hosting, go here and test your domain. just enter yourdomain.com on the lefthand, press enter and you`re done

falko 30th November 2005 11:53

Quote:

Originally Posted by new_bee05
How do I check if my Debian DNS Server is functioning correctly.

You can use dig to test it, e.g.

Code:

dig @localhost example.com
dig@localhost MX example.com
dig @localhost ANY example.com


new_bee05 30th November 2005 15:14

OK I get this when typing: dig @localhost mydomain.com

SERVFAIL, id:30662

which means?

Also nslookup gives me:
Server: 192.168.1.100
Address: 192.168.1.100#53

is this correct?

falko 30th November 2005 17:11

Your DNS server isn't running. Try to restart it, and have a look at the logs in /var/log to see if any errors occur.

new_bee05 1st December 2005 00:39

I have restarted bind 9 same result. how do i open the log files so i can view them.

falko 1st December 2005 01:07

Quote:

Originally Posted by new_bee05
I have restarted bind 9 same result. how do i open the log files so i can view them.

Run
Code:

tail -n100 /var/log/syslog
or
Code:

tail -n100 /var/log/messages
This will sshow the last 100 lines of these files.

new_bee05 1st December 2005 01:57

Only error messages I can see are:

myhost named[1872]: zone mydomain.com/IN: loading master file zones/master/master.mydomain.com: not at top of zone

myhost named[1518]: zone 1.168.192.IN-ADDR.ARPA/IN: loading master file zones/192.168.1.rev: unexpected end of input

myhost named[1518]:dns_rdata_fromtext: zones/192.168.1.rev:3: near eol: unexpected end of input

falko 1st December 2005 10:10

Quote:

Originally Posted by new_bee05
myhost named[1872]: zone mydomain.com/IN: loading master file zones/master/master.mydomain.com: not at top of zone

myhost named[1518]: zone 1.168.192.IN-ADDR.ARPA/IN: loading master file zones/192.168.1.rev: unexpected end of input

myhost named[1518]:dns_rdata_fromtext: zones/192.168.1.rev:3: near eol: unexpected end of input

That's the reason why Bind doesn't start. Try to have a look into these files and try to fix the problems.

till 1st December 2005 10:44

Quote:

Originally Posted by new_bee05
Only error messages I can see are:

myhost named[1872]: zone mydomain.com/IN: loading master file zones/master/master.mydomain.com: not at top of zone

myhost named[1518]: zone 1.168.192.IN-ADDR.ARPA/IN: loading master file zones/192.168.1.rev: unexpected end of input

myhost named[1518]:dns_rdata_fromtext: zones/192.168.1.rev:3: near eol: unexpected end of input

I guess you are not the owner of the domain mydomain.com and your server is connected to the internet?


All times are GMT +2. The time now is 09:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.