Results 1 to 8 of 8
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
12-15-2010 #1
- Join Date
- Oct 2009
- Posts
- 59
How to test if bind9 is really working?
The server can send/receive mail on my domain, but when I try to look up the site I have it returns a lookup failure. I know Apache is working as I can browse the site when I used my ip address but I can't when I use the domain name.
Anyone got a few tricks I could try to dumb down and find the possible failures I did when setting this up?
-
12-15-2010 #2
You can use 'nslookup' - if you execute it on its own it'll give you a simple shell. Give it the command 'server' followed by an IP address and it'll make all its lookups to that server. You can then type in host names and watch them resolved by the machine you're looking at.
Linux user #126863 - see http://linuxcounter.net/
-
12-15-2010 #3
- Join Date
- Oct 2009
- Posts
- 59
Thanks for the info, didn't know I could run nslookup without an ip.
Tried nslookup with the global ip address, and it returned:
Code:> Google Server: 194.1.130.117 Address: 194.1.130.117#53 ** server can't find www.google.com.andreansky.eu: SERVFAIL
Code:> Google Server: 192.168.77.87 Address: 192.168.77.87#53 Non-authoritative answer: Google canonical name = Google. Name: Google Address: 74.125.87.99 Name: Google Address: 74.125.87.104
What does that mean for me?
-
12-16-2010 #4
Looks like it's working - perhaps you should try it with a local address too? Your own DNS server is the only one that will be able to do the name resolution for those.
The 'Non-authoritative answer:' bit means it's picked up the information out of its cache rather than going and asking other name servers to look this up. This is normal behaviour, used to speed up name searches across the internet.Linux user #126863 - see http://linuxcounter.net/
-
12-17-2010 #5
- Join Date
- Oct 2009
- Posts
- 59
I tried disabling bind9 and trying nslookup and it worked even when bind was not running. Odd.
Can it get DNS entries from the cache even when the server is not running?
-
12-17-2010 #6
No, the server should time out. Something else is going on. Is the named daemon running even though you've turned off the bind service? Are you sure you've got the right IP addresses?
Linux user #126863 - see http://linuxcounter.net/
-
12-17-2010 #7
- Join Date
- Oct 2009
- Posts
- 59
The ip address is correct. When I run ps it show this, which is odd as bind should be stopped.
Code:root@BigAA:~# ps -A|grep named 13054 ? 00:00:00 named
Code:root@BigAA:~# /etc/init.d/bind9 stop
-
12-20-2010 #8
It all depends on where you are doing your lookups from. If you are doing lookups from the DNS server itself ensure that the resolv.conf file is pointing to the ip address of the DNS server.
The DNS server/process isn't stopped as you haven't stopped it. Look at your output. The process is called named and you should be using named to stop it.