Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to assign nameservers for a domainname to its subdomain, similar to what google did. that is for google.com the name servers are ns1.google.com - ns4.google.com. I can setup a DNS Server. The part which I can't figure out as of now is how can I assign IP Address to ns1.example.com - nsX.example.com while making them nameserver for example.com.

If I am not wrong then I have to make a request to my domainname registrar for setting it up for me. If it is so, what should I ask my registrar for?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

You assign them an IP like you would assign an IP for any other server. The only difference is that you want to register a glue record in order to avoid the circular dependency that develops when your DNS servers are authoritative for a domain that they are a subdomain of.

share|improve this answer
yes. glue record. i read about it somewhere long back and can't remember what its called. anyway thank you very much :) –  Idlecool Jan 19 '12 at 21:09

They host their own DNS servers.


If you own example.com then you would host your own servers at your location running DNS.

So you build up ns1.example.com and ns2.example.com at your offices (or your cloud, etc.) and make them authoritative for example.com.

Then you login to your registrar's control panel (say Network Solutions) and set the name servers for example.com to point to ns1.example.com and ns2.example.com.

share|improve this answer
The difference is that they'll need the IP addresses as well and they'll need to add glue records. When nameservers serve their own zone, you can't very well ask them for their own IP addresses. (Because you need to already know the IP address in order to query.) –  David Schwartz Jan 19 '12 at 21:00
how shall I make ns1.example.com and ns2.example.com authoritative? –  Idlecool Jan 19 '12 at 21:03
I think you missed the point of the question. He's asking how anyone will be able to resolve ns1.example.com to get the address for example.com, since to be able to resolve ns1.example.com you first need to be able to contact the name servers for that site, thus the need for glue records which break this circular dependency. –  MDMarra Jan 19 '12 at 21:06
MDMarra, yep sorry, I did overlook what his real question was. –  TheCleaner Jan 20 '12 at 17:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.