1828663 Members
1417 Online
109984 Solutions
New Discussion

Testing DNS fails

 
SOLVED
Go to solution
Sakui
Frequent Advisor

Testing DNS fails

I have a single server and want to configure the DNS and Apache on it. I am using redhat Linux 9.MY server has no connection to the internet. I am using a Class C address of 192.168.45.1 on my network card. I have also configure the /etc/namded.conf with the appropiates settings.I also went to the /var/named and created my zone record for both forward and reverse zone. I also put an entry for the 192.168.45.1. in my zone record. My named service is running but when i run chkconfig --list named, i see named service off at all the run level.i also ran the ps ax |grep named command. I see the named process running. When i do the netstat -ant |grep 53
i see my current ip address listening to port 53.but when i try testing the dns with dig + ip address i get an error saying connection timed out no server found.Friend what is the problem. I need ur help and Advice. I also put the same ip address as the DNS for it self.
2 REPLIES 2
Florian Heigl (new acc)
Honored Contributor
Solution

Re: Testing DNS fails

1. chkconfig named on

2. use dig www.yahoo.com @127.0.0.1 to get what You want

3. look at /etc/resolv.conf - does it contain 'nameserver 127.0.0.1' in the first line? (You might want to not change that before the tests turn out ok)

4. are there any error messages in /var/log/daemon.log or /var/log/messages (or whereever messages go in redhat, I don't recall at the moment)

5. please try to make Your text a slight bit more readable next time :)
yesterday I stood at the edge. Today I'm one step ahead.
Ivan Ferreira
Honored Contributor

Re: Testing DNS fails

As said above, you should use the @ character to specify the server to connect.

dig @server fqdn

You should verify that the resolv.conf is correct, should have:

nameserver 127.0.0.1

And finally, if you want to test the reverse resolution (IP to HOST), you must use the -x option of the dig command.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?