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

  • Posted February 22, 2013

I read from here,, 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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @Jonathan <br> <br>Will your example also work on zpanel? I can’t seem to make it work. Thanks!

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 as the domain for the purpose of getting this setup. You’d simply need to change to your domain name. <br> <br>The IP’s listed below are the actual IP’s for DigitalOceans nameservers, in order, so you won’t need to change them. <br> <br> <br>First, we’ll create/add the A entries: <br> <br> <br>ns1 » A » <br> <br>ns2 » A » <br> <br>ns3 » A » <br> <br> <br>Next we’ll create/add the NS entries: <br> <br> <br> » NS » <br> <br> » NS » <br> <br> » NS » <br> <br> <br> <br>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.

For anyone that arrives at this thread via a search engine, and is interested in this topic, check out: <a href=“”>How to Create Vanity or Branded Nameservers with DigitalOcean Cloud Servers</a>.

Great, thanks!

@Pablo: The IPs were changed a while ago: <br> <br>» dig +short {ns1,ns2,ns3} <br> <br> <br>

<pre> <br>First, we’ll create/add the A entries: <br>ns1 » A » <br>ns2 » A » <br>ns3 » A » <br></pre> <br> <br>Are these IPs still current/correct?

You will have to set up glue records for ns1, ns2, and ns3. at your domain registrar: <br>

Did not work for me too

I’m using godaddy, I have “Nameserver not registered.” error. <br>Here are screenshots; <br> <br> <br> <br> <br>Any Help ?

Sorry for the typo… <br> <br>“from register’s DNS settings” <br> <br>meant to be <br> <br>“from your domain register’s DNS settings (godaddy, namecheap, etc.)”