LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to check if my DNS server is working (https://www.linuxquestions.org/questions/linux-server-73/how-to-check-if-my-dns-server-is-working-4175520451/)

grzeslaw 09-29-2014 01:07 AM

How to check if my DNS server is working
 
Hi,

Few days ago, I installed bind9 server on my fresh debian 7 machine. All packages are up2date, and repositiries are offical.

I have configured bind exactly as it is described here:
https://wiki.debian.org/Bind9

I have a free domian registered at dot.tk, which is acctualy pointing to my old DNS server.. 4 days ago, I changed the DNS on the register side, but they still pointing to my old server ;/ I dont know why..

Anyways, as I have only production domain, and I can't move them to my new DNS server, and I want to check if all is working fine..
On the server all seems to be good, I replace all fields in resolv.conf to use this server so:
Code:

# cat /etc/resolv.conf
search $myhostname
nameserver $myserverip

and I am able to query domains with dig or host command.

So question to you:
Do you know, how can I can if my bind is working fine?

TenTenths 09-29-2014 02:07 AM

Use dig <domain> @yourip

That should give you a good indication that bind is working, also you could enable all DNS query logging (google it, there's tons of tutorials) and then do the same dig again and it should appear in the logs.

Do the same thing from an external server (if you have one) and you should also see the results.

Alternatively why not use a paid DNS provider? Service I use is $2.99 a month and I don't have to deal with availability, secondary servers, replication, etc. :)

grzeslaw 09-29-2014 04:50 AM

The issue is, that it shows me old DNS..
Code:

$ host -t NS domain.tk
domain.tk name server ns2.domain.net.
domain.tk name server ns1.domain.net.

4 days ago, I changed the dns for my domain.tk, and now, it should point to: Dns1.domain.net and Dns2.domain.net, but still pointing to ns1.. and ns2.. That's weird..

Also when trying to check domain using host cmd it resolves correctly:
Code:

$ host -t NS domain.tk $SERVERIP
Using domain server:
Name: $SERVERIP
Address: $SERVERIP#53
Aliases:

domain.tk name server dns2.domain.net.
domain.tk name server dns1.domain.net.

But when I remove server to query I get old DNS:
Code:

$ host -t NS domain.tk
domain.tk name server ns2.domain.net.
domain.tk name server ns1.domain.net.


So I am really confused, it looks that my domain providier have some issues with changing DNS..

TenTenths 09-29-2014 04:55 AM

Quote:

Originally Posted by grzeslaw (Post 5246184)
So I am really confused, it looks that my domain providier have some issues with changing DNS..

Yes, that looks to be the case.

grzeslaw 09-29-2014 01:40 PM

But the rest, looks good - yes?..
I mean, the DSN seems to get responds which should work..

TenTenths 09-30-2014 07:43 AM

Looks OK to me, and if you can get the results by using the IP address of the name server then you should be fine once your registry processes the updates.

You may find that if you're using servers within the same domain then your provider may require you to register them specifically in order to create the relevant "glue" records.

grzeslaw 10-01-2014 01:19 AM

Cool, thanks for update!


All times are GMT -5. The time now is 05:52 AM.