0

I have been trying to setup custom nameservers. We have a domain, lets call it “example.com” and I would like “ns1.example.com” and “ns2.example.com” to act as nameservers.

Here are the steps I have completed so far:

  1. Registered a VPS with a local VPS provider.
  2. Pointed example.com at our VPS providers nameservers.
  3. Attempted to configure WHM to use n1.example.com and ns2.example.com as nameservers.
  4. Created “Registry hosts” with our domain registrar that point to “n1.example.com” and “ns2.example.com” using the IP addresses of our VPS.

Neither of the above options work. I am a bit lost on how to proceed. I’m not sure what to query for on each domain to test for success.

Is this setup correct?

1
  • 3
    OK, everyone stop referring to things as "custom". There's no such thing as a "custom" name server, or a "custom" domain or a "custom" email address. There are name servers, domains and email addresses. There's nothing "custom" about them.
    – joeqwerty
    Apr 21, 2013 at 14:43

3 Answers 3

2

You will need an additional IP to configure the second nameserver in WHM. You can point example.com and ns1.example.com to your main IP, but you need a second IP that you can point ns2.example.com to. Add this IP to your WHM and then assign it to the second nameserver.

2
  1. You need two name servers, meaning two VPS
  2. The test to see if they are properly configured is dig @ip-address SOA example.com, you must get an authoritative response (flag aa in dig's output).
  3. Then (and only then), you can move to the next step, tell your registrar to use these servers for example.com
2
  • +1, thanks for the help. Should I be getting the same results from dig using @ip-address and just using other nameservers. Is this a sign of successful propagation? I get the records when using the IP but not without using it.
    – Sam Becker
    Apr 22, 2013 at 0:10
  • The test in 2) only checks that your name servers are OK, not that they will be queried by the world resolvers (this is step 3)
    – bortzmeyer
    Apr 22, 2013 at 9:08
0

You have a few options.

You can set both ns1 & ns2 to the same IP. This WILL work (as you are required to have 2 name servers for the domain to be "Active") but not recommended. This would work the same as getting a second IP for your existing server.

You can get a public secondary name server. Most companies ISP's or hosting companies do this for a small charge (or free).

Or get another VPS and host yourself another NS

edit: chuck your domain name in here: http://www.intodns.com/ Very handy to see what it says.

1
  • do a dns whois and make sure the domain is active, they may have different rules. sorry skimmed that part. Would recommend using a small secondary through an ISP or the VPS company.
    – Dan
    Apr 23, 2013 at 1:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .