Question

Create my own nameserver for dynamic-DNS

  • Posted on May 10, 2013
  • mark1Asked by mark1

Hi,

I’m currently hosted on HeartInternet. While their cheapest-package servers are far more powerful than I require, I’m frustrated that I’d have to pay extra to get MySQL support (amongst other things). I also currently use dynamic DNS (via dyn.org/afraid.org domains) to access my own computers.

If I were to move to DigitalOcean (which I most likely will), then I’d have total control over my server’s internal environment (hooray, databases!). Would I also be able to set up my own nameserver on the droplet, to enable a configuration similar to the following (specifically, the “dynamic” entries):

www.mydomain.co.uk => static: points to droplet, for LLMP or LAMP web server. ftps.mydomain.co.uk => static: points to droplet, for ftps. home.d.mydomain.co.uk => dynamic: my home IP address (NAT to handle things from there). work.d.mydomain.co.uk => dynamic: my office IP address (as above).

Basically, could I dump other dynamic DNS providers and have everything accessed via my domain name and my droplet?

Are there any existing guides on how to do anything like this with droplets?

Also, how easy would it be for me to migrate my email over? I don’t use the inbox on HeartInternet, everything that goes into it is pulled into my Gmail account, so I wouldn’t need to migrate any actual data from Heart’s email system. I’d presumably just need to set up an IMAP or POP server for Gmail to pull mail from, and let Gmail’s SMTP handle outgoing messages. Am I missing anything, or would it really be this simple to transfer my @mydomain.co.uk email over?

Thanks, Mark

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

If you use Digital Ocean’s DNS server you can create an A record and keep it updated with this script I wrote:

https://github.com/chandwer/DigitalOcean-DDNS

So you would install that on your home server and it would check its external IP address, compare it to the A record, via the DNS API, and update the A record if necessary.

For more info, check out: <a href=“https://www.digitalocean.com/community/articles/how-to-create-vanity-or-branded-nameservers-with-digitalocean-cloud-servers”>How to Create Vanity or Branded Nameservers with DigitalOcean Cloud Servers</a>

You have to create glue records at your registrar to point to your PowerDNS droplet.