LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


LinkBack Search this Thread
Old 03-01-2007, 09:20 AM   #1
Registered: Dec 2003
Distribution: Slackware 13.0, Backtrack 5 R1
Posts: 216

Rep: Reputation: 35
DNS problems


I'm administrating a DNS domain and i'm having some problems. I own a domain, let's call it On the server i wish the domain would point to, i set up a DNS server, with A record, which binds to the IP address:

Code: IN SOA (
          ;here are serial and other nessesery options ) IN NS IN A <IP_address> IN CNAME
At the company, which registered my domain i changed the DNS servers to Now the thing is, that perfectly works, but does not and i don't know why. If i try to run nslookup from

nslookup -
i get correct answer. The same if i try to use dig from
I don't understand why is it not working in global scope (running just nslookup returns no results). Correct me please if i am wrong, but i believe that's the logic behind dns queries:
when i issue a DNS query the default DNS server gives me the address of the DNS server which is bound to the domain (the information about it is stored on DNS servers of the registration company), where my query is run once again and the server responds with the correct IP.
Illustrating it with an example: when i issue a dns query for (e.g. nslookup the default dns server looks up it's tables and sees the domain is registered by the company xy and redirects the query to their dns server, there the server redirects the query to the correct dns server, which is bound to the domain (in my case, this is the server i configured) and the last one tells which IP is bound to the domain name and issues the respond.

Please help if you can, the thing is really urgent, since the domain should be working for couple of days now, but i was still not able to set it up.

Last edited by zWaR; 03-01-2007 at 09:41 AM.
Old 03-01-2007, 09:32 AM   #2
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,771

Rep: Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283
You miss the ns1 A record:
ns1 IN A <IP_address>
Old 03-01-2007, 09:43 AM   #3
Registered: Dec 2003
Distribution: Slackware 13.0, Backtrack 5 R1
Posts: 216

Original Poster
Rep: Reputation: 35
thank you for the notification. I made a mistake in the post before. I edited it and corrected the posted dns config.
Old 03-01-2007, 09:57 AM   #4
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
The delegation of does not lead to your server from the looks of a trace -
jim@jimsworktop:~$ dig +trace

; <<>> DiG 9.3.4 <<>> +trace
;; global options:  printcmd
.                       143531  IN      NS      J.ROOT-SERVERS.NET.
.                       143531  IN      NS      K.ROOT-SERVERS.NET.
.                       143531  IN      NS      L.ROOT-SERVERS.NET.
.                       143531  IN      NS      M.ROOT-SERVERS.NET.
.                       143531  IN      NS      A.ROOT-SERVERS.NET.
.                       143531  IN      NS      B.ROOT-SERVERS.NET.
.                       143531  IN      NS      C.ROOT-SERVERS.NET.
.                       143531  IN      NS      D.ROOT-SERVERS.NET.
.                       143531  IN      NS      E.ROOT-SERVERS.NET.
.                       143531  IN      NS      F.ROOT-SERVERS.NET.
.                       143531  IN      NS      G.ROOT-SERVERS.NET.
.                       143531  IN      NS      H.ROOT-SERVERS.NET.
.                       143531  IN      NS      I.ROOT-SERVERS.NET.
;; Received 436 bytes from in 79 ms

com.                    172800  IN      NS      A.GTLD-SERVERS.NET.
com.                    172800  IN      NS      G.GTLD-SERVERS.NET.
com.                    172800  IN      NS      H.GTLD-SERVERS.NET.
com.                    172800  IN      NS      C.GTLD-SERVERS.NET.
com.                    172800  IN      NS      I.GTLD-SERVERS.NET.
com.                    172800  IN      NS      B.GTLD-SERVERS.NET.
com.                    172800  IN      NS      D.GTLD-SERVERS.NET.
com.                    172800  IN      NS      L.GTLD-SERVERS.NET.
com.                    172800  IN      NS      F.GTLD-SERVERS.NET.
com.                    172800  IN      NS      J.GTLD-SERVERS.NET.
com.                    172800  IN      NS      K.GTLD-SERVERS.NET.
com.                    172800  IN      NS      E.GTLD-SERVERS.NET.
com.                    172800  IN      NS      M.GTLD-SERVERS.NET.
;; Received 498 bytes from in 78 ms               172800  IN      NS               172800  IN      NS
;; Received 101 bytes from in 82 ms               300     IN      A               3600    IN      NS               3600    IN      NS
;; Received 117 bytes from in 99 ms
So instead of reaching your nameserver which should have the same address as your A record, it gets an authoritative answer at ns1 and

Also, from the looks of this test, your machine at the A record doesn't even answer.
jim@jimsworktop:~$ dig @

; <<>> DiG 9.3.4 <<>> @
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached
I would guess that you have DNS on a box that doesn't have port 53 open to the world. Also, since the nameservers at are listed as authoritative, you don't have the nameservers pointed to yourself at the registrar where you created the domain.

One other thing, nslookup is about the most useless DNS troubleshooting tool ever. Please use dig, you'll get much better answers.

Old 03-01-2007, 10:04 AM   #5
Registered: Dec 2003
Distribution: Slackware 13.0, Backtrack 5 R1
Posts: 216

Original Poster
Rep: Reputation: 35 was just an example. I don't know if the company i am working for would be happy if their info was exposed on a forum, so i posted just an nonexistenble domain as an example.
Old 03-01-2007, 10:24 AM   #6
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
I'm new at this but:
Misses a dot.

Also why not use:
www IN CNAME ns1
Old 03-01-2007, 10:37 AM   #7
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Well, we can't troubleshoot examples. Check the BIND mailing lists. If you want DNS help many people are glad to provide it, but we can't test things out in a theoretical way. There is no risk to the DNS by posting the domain name. I can't speak for the website itself, as I have no idea how it is set up, but long story short, without the real domain to test, you're on your own to find the problem.

DNS isn't an attack vector, so I see no problem in posting the true domain name.

Old 03-01-2007, 11:18 AM   #8
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 31
As has been stated before: Have you pointed your registrar towards your dns? You can host your own nameserver but normally you have to let your registrar know what the address of your server is. If you haven't done this, check their webpage or call them. I always call network solutions, their web page is confusing. Godaddy is pretty easy to figure out from the webpage, mileage may vary. Also when you do update your registrar, it can take some time to propagate through various caches. Most registrars say 24-48 hours, though I have never seen it take that long...

Old 03-02-2007, 10:24 AM   #9
Registered: Dec 2003
Distribution: Slackware 13.0, Backtrack 5 R1
Posts: 216

Original Poster
Rep: Reputation: 35
Yuhu!! I've solved it. The catch was, i didn't configure two DNS servers on the registrar, just one (primary server). Thank you for your time and help!!


dig, dns, domain, nslookup

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Problems? gravediggers Linux - Networking 3 01-01-2006 05:33 PM
DNS Problems imemyself Linux - Networking 11 05-31-2005 08:43 PM
DNS problems with RH 9 ryoga92 Linux - Networking 10 06-28-2004 05:56 AM
Problems with DNS aqoliveira Linux - Networking 12 10-29-2003 11:01 AM
need help: DNS problems kcwoo Linux - General 0 03-12-2002 10:53 PM

All times are GMT -5. The time now is 03:31 AM.

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