LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-29-2014, 01:07 AM   #1
grzeslaw
Member
 
Registered: Nov 2008
Posts: 111

Rep: Reputation: 24
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?

Last edited by grzeslaw; 10-01-2014 at 01:01 AM.
 
Old 09-29-2014, 02:07 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,461

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
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.
 
Old 09-29-2014, 04:50 AM   #3
grzeslaw
Member
 
Registered: Nov 2008
Posts: 111

Original Poster
Rep: Reputation: 24
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..
 
Old 09-29-2014, 04:55 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,461

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Quote:
Originally Posted by grzeslaw View Post
So I am really confused, it looks that my domain providier have some issues with changing DNS..
Yes, that looks to be the case.
 
Old 09-29-2014, 01:40 PM   #5
grzeslaw
Member
 
Registered: Nov 2008
Posts: 111

Original Poster
Rep: Reputation: 24
But the rest, looks good - yes?..
I mean, the DSN seems to get responds which should work..

Last edited by grzeslaw; 09-29-2014 at 02:26 PM.
 
Old 09-30-2014, 07:43 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,461

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
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.
 
Old 10-01-2014, 01:19 AM   #7
grzeslaw
Member
 
Registered: Nov 2008
Posts: 111

Original Poster
Rep: Reputation: 24
Cool, thanks for update!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check/Update DNS server settings jau1310 Linux - Newbie 4 06-11-2013 11:09 PM
Transaction Check Error in DNS server running centos 5.7 SarahGurung Linux - Newbie 32 01-27-2012 05:39 PM
why my DNS server is not working?? rajronju Linux - Newbie 2 01-18-2008 01:21 PM
how to check if working on local computer or a server cad Linux - Networking 7 01-03-2007 07:42 AM
Is there a way to check dns server is really caching? Linux.tar.gz Linux - Networking 4 08-26-2006 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration