Point your Domain

Home stretch. You have your server, and if needed, you have created a separate database and storage space. Now it's time to point your domain so people can browse to the your site.

At the moment, your droplet is only accessible via it's IP address. That may be fine for those that are looking to host a private application. But the majority of users are going to want a domain name they can attach to their server, and promote to others. And for that, you'll need to first register your domain.

Note that you may also reference the DigitalOcean guide for these steps.

Register your Domain

If you already have a registered domain name, then great. You can jump straight to the next section. Otherwise, you'll need to register a domain name via your preferred registrar. If you aren't sure who to go through, we recommend Google Domains, they provide a great service, and you would be hard pressed to find a better nameserver provider.

Configure your DNS records

You have the option of configuring your DNS records through your domain provider (if they provide the service), or using DigitalOcean's networking service. If you do decide to use DigitalOcean, then make sure you point your registrars nameservers to those provided by DigitalOcean before adding any DNS records and don't forget to add the nameservers via DigitalOcean's networking service.

Beyond that, adding DNS records is quite a simple affair. For the most simple setup, you'll only need to add an 'A' type record, which uses '@' as a hostname and redirects to your droplet IP address as the destination. For more complicated setups, including handing subdomains, forwards and other redirects, Google is your friend and should be able to provide context to any scenario you may have.

Last updated