DNS Puzzle

Joined
Dec 5, 2003
Messages
517
Here is something that makes no sense to me:

(hiding actual dns names per request of the owner)

abc123.com has the following name server entry:
ns1.abc123.com
ns2.abc123.com

How can this possibly work?

I can provide more details if needed.

I am in the process of obtaining a static IP from my local ISP for a home web server I am implementing. I bought a domain name and now I need to point it to the name server I am going to be running at home. Therefore I am wondering exactly how to do this. I am assuming I can't use an IP address as the name server entry.
 
Why would you be pointing the domain to a nameserver? Generally you would update the nameservers from whom you obtained the domain from (yahoo, godaddy etc..) with your webservers IP address and it would then propogate across the internet.
 
It's called a glue record. Your registrar will allow you to specify the IPs for hosts under the domain you have with them, and those will be added to the TLD name servers, in the case of com these name server
Code:
dig com NS

; <<>> DiG 9.3.4 <<>> com NS
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23807
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 12

;; QUESTION SECTION:
;com.                           IN      NS

;; ANSWER SECTION:
com.                    99675   IN      NS      g.gtld-servers.net.
com.                    99675   IN      NS      f.gtld-servers.net.
com.                    99675   IN      NS      j.gtld-servers.net.
com.                    99675   IN      NS      b.gtld-servers.net.
com.                    99675   IN      NS      d.gtld-servers.net.
com.                    99675   IN      NS      h.gtld-servers.net.
com.                    99675   IN      NS      k.gtld-servers.net.
com.                    99675   IN      NS      c.gtld-servers.net.
com.                    99675   IN      NS      i.gtld-servers.net.
com.                    99675   IN      NS      a.gtld-servers.net.
com.                    99675   IN      NS      m.gtld-servers.net.
com.                    99675   IN      NS      l.gtld-servers.net.
com.                    99675   IN      NS      e.gtld-servers.net.

;; ADDITIONAL SECTION:
h.gtld-servers.net.     139846  IN      A       192.54.112.30
k.gtld-servers.net.     47229   IN      A       192.52.178.30
d.gtld-servers.net.     148252  IN      A       192.31.80.30
l.gtld-servers.net.     56809   IN      A       192.41.162.30
g.gtld-servers.net.     25937   IN      A       192.42.93.30
i.gtld-servers.net.     38736   IN      A       192.43.172.30
c.gtld-servers.net.     143050  IN      A       192.26.92.30
a.gtld-servers.net.     143050  IN      A       192.5.6.30
a.gtld-servers.net.     143050  IN      AAAA    2001:503:a83e::2:30
j.gtld-servers.net.     162447  IN      A       192.48.79.30
b.gtld-servers.net.     38736   IN      A       192.33.14.30
b.gtld-servers.net.     38736   IN      AAAA    2001:503:231d::2:30
Then when some one requests abc.com from those they not only get the NS records but also the corresponding A records.
Example for hardocp.com
Code:
 dig @a.gtld-servers.net. hardocp.com. NS

; <<>> DiG 9.3.4 <<>> @a.gtld-servers.net. hardocp.com. NS
; (2 servers found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64701
;; flags: qr rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 4

;; QUESTION SECTION:
;hardocp.com.                   IN      NS

;; ANSWER SECTION:
hardocp.com.            172800  IN      NS      ns.ckmdesign.com.
hardocp.com.            172800  IN      NS      ns.itotf.com.
hardocp.com.            172800  IN      NS      ns2.ckmdesign.com.
hardocp.com.            172800  IN      NS      ns2.itotf.com.

;; ADDITIONAL SECTION:
ns.ckmdesign.com.       172800  IN      A       75.126.99.252
ns.itotf.com.           172800  IN      A       75.126.99.250
ns2.ckmdesign.com.      172800  IN      A       75.126.99.253
ns2.itotf.com.          172800  IN      A       75.126.99.251

;; Query time: 93 msec
;; SERVER: 2001:503:a83e::2:30#53(2001:503:a83e::2:30)
;; WHEN: Fri Feb  8 14:07:49 2008
;; MSG SIZE  rcvd: 179
 
Thanks for the information. I will do some additional research on glue records. Do you mind if I PM you if I have any more questions?
 
Just my two cents. Who ever is yoru domain registrar should be providing you with your DNS resolution so all that is configured at their web site.


I use both go daddy and network solutions. Today i had to redirect my MX and A records to reflect a new IP. They have a advanced DNS tab that allows me to point my A or MX records to any IP I Specify. Check with yout registrar they are usually very helpfull in these sitations.
 
You can run your own DNS name servers if you really wanted too. The domain registrar should allow you to add NSx.domain.com with the associated IP address of your DNS server. You need a minimum of two name servers for your domain though, ideally on different servers (and networks). Then from each DNS server, there will be records pointing to your services (Web, Mail etc).

But if you can get reasonable DNS server hosting from your registrar, just go for that.. way easier!
 
Back
Top