Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a new VPS I want to use to manage sites on. I need to set up nameservers so that I can point the domain names to the new servers. I know nameservers usually look like ns1.example.com where example.com is the domain name of the VPS, but my VPS does not have a domain name, I just access it via the servers IP.

Is it OK to use a domain name of one of the sites I am trying to set up instead?

share|improve this question

1 Answer 1

Nameservers can have DNS records for other domains too. For example:

ns1.abccompany.com and ns2.abccompany.com provides DNS for:

  • abccompany.com
  • abccompany.net
  • xyzcompany.com

The nameservers (ns1.abccompany.com and ns2.abccompany.com) need to be setup in your DNS settings for abccompany.com, and then set the same nameservers in your other domains, along with the "A" record indicating which IP address these would be served from.

So yes, you can use one domain to act as the nameservers for the others.

share|improve this answer

Your Answer

 
discard

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.