Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have registered a domain name from godaddy recently and want to run two nameservers and on it. I have followed the process mentioned in godaddy but, got stuck.

I have two ip addresses assigned to my vps from ip1 and ip2. From gaddy, i have added two host ns1 -> ip1 and ns2 -> ip2.

Now, godaddy has confirmed that and are registered, so when i do a whois, they show up nicely.


Both give proper answers. it shows that both nameserver addresses are registered in the registrars and displays the ip addresses properly.

But, the step I am confused now is, when I do a dig, it fails to resolve to any ip address


Both fails. I have a zone defined in bind for Do i need to setup A records for and

Why does, registering the nameserver addresses and adding host info in godaddy doesn't work?

share|improve this question
Just as a side note to fixing your other issues it's worth saying that there are no good reasons for doing this the way you're trying to do it. At least one of your DNS servers should be on a separate machine. You are setting yourself up for failure. Just so you know. There are third party DNS hosting services available. – Caleb Oct 15 '10 at 17:53
Could you explain why this is not recommended? Also, can you suggest a good dns hosting company which provides hosting private nameservers? – bibstha Oct 16 '10 at 2:26
Your question makes it sound as though both ns1 and resolve to different IP addresses, which are configured on one server. This means if the server fails, both nameservers (and your site) fail. If this is not the case, and you have two virtual servers running a nameserver each, this is better. Still, there is little need to run your own DNS servers for most normal use as most providers let you configure your own DNS entries anyway. We've had good experiences with for backup DNS as we don't want to rely on GoDaddy (or whoever) exclusively. – TessellatingHeckler Oct 16 '10 at 2:58

2 Answers 2

up vote 1 down vote accepted

You need to have your and addresses registered with fixed IP's at some registrar that supports registering name servers. It sounds like you have finished this step. These registrations are special in that they are self resolving, the IP address is returned along with the name of the name server specifically to break any circular dependencies.

However that is not the same as trying to run a dig on those addresses because the lookup system for them is different. If you would like them to resolve as normal host names in addition to being name-servers, you may add A records for them like you would any other host names in your local DNS server, but is not strictly necessary unless you actually use those as host names.

dig should tell you if your DNS server is returning a records for your domain. dig will tell you if your DNS system is returning records for that host name. You can also use the IP of your server after the @ to test the last step if you don't have the first one done.

share|improve this answer

Do i need to setup A records for and


Why does, registering the nameserver addresses and adding host info in godaddy doesn't work?


share|improve this answer

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.