Question

Adding domain name on ubuntu

  • Posted on November 22, 2014
  • denycallAsked by denycall

How do I add a domain name to my droplet like mertbask.tk?


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.

On dot.tk enter the IP address of your droplet to that domain.

On your control panel, go to networking. That’s https://cloud.digitalocean.com/networking. Click Domains. Under Add a Domain, type your domain, like something.com / something.blah. From the drop-down list where it says droplet or custom IP address, select your droplet. It should auto-fill. Check the droplet you want and IP address is correct. Hit the Create Record button.

With other options (A is set for you now, along with NS records), you can select CNAME for example, and add (e.g.) “www” as the CNAME pointing to something.com. (note the added period/dot after the domain).

With your registrar, you want to change the DNS records. That’s the registrar where you registered your domain name. Under the list of DNS servers, remove those that already exist, or add them as your options are. Add in ns1.digitalocean.com ns2.digitalocean.com ns3.digitalocean.com and save your DNS server information at your domain registrar’s control panel. It should be quick, but it can be 24/48/72 hours for the changes to propagate around the Internet.

And you’re done, aside from MX records for email for example. You can look that up in Digital Ocean’s FAQ after checking for inbox/email set up.

Hope that helps.