How to have own nameserver using Digital Ocean's own nameserver

February 22, 2013 14.1k views
I read from here, http://digitalocean.uservoice.com/forums/136585-digital-ocean/suggestions/3637662-create-and-offer-anonymous-name-servers#comments, that you can have your own nameserver using DO's nameserver. How do I set this particularly in Centos 6.3 / Ubuntu 12.04? If i use my fancy nameserver with DO's IPs, can I delete the DNS entries in the DO dashboard or do I have to keep them so that the nameservers will resolve? I'm a new to this DNS thing really, please excuse me. Thanks.
12 Answers
The easiest way to set this up would be to create an A & NS entry for each nameserver, branded to your domain. We'll use example.com as the domain for the purpose of getting this setup. You'd simply need to change example.com to your domain name.

The IP's listed below are the actual IP's for DigitalOceans nameservers, in order, so you won't need to change them.


First, we'll create/add the A entries:


ns1 » A » 69.55.55.74

ns2 » A » 141.0.175.217

ns3 » A » 69.55.62.20


Next we'll create/add the NS entries:


example.com » NS » ns1.example.com

example.com » NS » ns2.example.com

example.com » NS » ns3.example.com



That'll get you setup and allow you to use the branded nameservers while using DigitalOceans IP's. If you're using a barebones system (no Control Panel), there's a bit more required to get things working (i.e you'll need NSD or BIND to intercept the requests). If you are using a control panel, such as cPanel, DirectAdmin, or Plesk, then you'll be able to add the nameservers and IP's through the GUI.
Hi @Jonathan

Will your example also work on zpanel? I can't seem to make it work. Thanks!
What about the DNS records in the DO dashboard? Can i delete them after following the steps you enumerated? Or must I still keep them?

I guess I've already done everything but yesterday when I did a trace on the IP assigned to my vps, it still showed i'm hosted on DO. The article linked above clearly requested/suggested that we have some "protection" or anonymity as far as nameservers are concerned. Then it was marked as completed. If the request/suggestion was granted/completed, why is it that my IP still shows DO's? I'm really new to this so please excuse me.

Thanks much for the answers.
1. You can delete DO's NS records, leaving on your's.

2. You just need to update "yourdomain.com" from register's DNS settings. Changing from

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

to

ns1.yourdomain.com
ns2.yourdomain.com
ns3.yourdomain.com

Sorry for the typo....

"from register's DNS settings"

meant to be

"from your domain register's DNS settings (godaddy, namecheap, etc.)"
I'm using godaddy, I have "Nameserver not registered." error.
Here are screenshots;
http://cl.ly/image/1Q1W230E1R3T
http://cl.ly/image/1E06152a3m45
http://cl.ly/image/3p0y1J0Q1s32

Any Help ?
You will have to set up glue records for ns1, ns2, and ns3. at your domain registrar:
http://www.ehow.com/how_8116690_add-glue-records-godaddy.html

First, we'll create/add the A entries:
ns1 » A » 69.55.55.74
ns2 » A » 141.0.175.217
ns3 » A » 69.55.62.20


Are these IPs still current/correct?
@Pablo: The IPs were changed a while ago:

» dig +short {ns1,ns2,ns3}.digitalocean.com
198.199.120.125
141.0.170.89
198.199.95.114
For anyone that arrives at this thread via a search engine, and is interested in this topic, check out: How to Create Vanity or Branded Nameservers with DigitalOcean Cloud Servers.
by Pablo Carranza
Learn how to create vanity or branded nameservers with your Droplets.
Have another answer? Share your knowledge.