Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can one IP address be registered as two different name servers, for example, can one IP address be registered as both and with my DNS registrar? (I know one IP cannot and should not be both and

I ask because I am setting up a secondary DNS server and the names it will be serving are all on one machine right now; this machine has many IPs, one IP is and another is (clearly those are example names) and some customers have their DNS set to the "" name servers, while other have their DNS name servers set to the "" nameservers. It's the same server, it was just that the "" name was purchased years after as a replacement for the "" name, but not all customer switched their DNS.

EDIT: To clarify, I'm not talking about DNS A records, I am talking about registering IP addresses as nameservers with my registrar.

EDIT 2: Thanks to Jacob, who reminded me that the word for what I am asking is "glue records." Can one IP serve as two different glue records for two different domains?

share|improve this question
up vote 1 down vote accepted

The record you're thinking of are called glue records... As far as 2 domain's glue records pointing to the same IP for their DNS server, it'll work. Your DNS server nor the register will care how you get the server's IP. You should remember though, that you can't set RDNS for both hostnames though.

share|improve this answer

You can have as many A records as you like pointing to the same IP, there is nothing in the DNS spec that will stop you.

That said, you obviously loose some redundancy if all your name servers are on one physical machine, but if you are splitting name servers between 2 machines, and just using the same IP for multiple domains, this is less of an issue. Your more likely to see hardware issues, than you are routing errors for a single IP.

share|improve this answer
Actually, I'm not talking about DNS A records, I am talking about registering IP addresses as nameservers with my registrar. – Josh Mar 11 '11 at 17:33

As long as both NS are different there are no other restrictions. Multiple domains can use the same name servers.

share|improve this answer
What do you mean "as long as they're different"? – joeqwerty Mar 11 '11 at 17:40
Different IP address and hosted on different servers. – Mircea Vutcovici Mar 11 '11 at 21:14

To answer your question: Yes, you can do that.

There is problem in registering several nameserver sets with your registrar using the same IP addresses.

Note that both and will be able to resolve zones from "both" NS sets, if you choose to do this.

Also, you cannot have severeal reverse DNS entries on the IP addresses of the nameservers. But if that does not matter, you are good to go.

share|improve this answer

The NS records are themselves A records. There's an A record for and then you designate as the name server for the DNS zone. You can create any number of A records for the same ip address and designate those "names" as the name servers for any number of DNS zones, so the A records for and could resolve to the same ip address and both could be designated as the name server for their respective DNS zone.

share|improve this answer

I think you are overthinking this. Why not just declare's nameserver to be (or the other way around if you are getting rid of does anyone ever get rid of a domain?)

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.