Domain Configuration

How to use a domain for easier remote access to your server.

Obtaining a Domain

Configuration

If you want to have a custom address for your server, you can purchase a domain from a domain registrar. This will allow you to access your server using a memorable URL instead of an IP address or an auto-generated subdomain from a tunneling service.

When getting a domain, most websites should give you the functionality you need, such as DNS management, the ability to create subdomains, and depending on services you use for accessing your server, the option to edit nameservers. Many people report good experiences with Porkbun and Cloudflare; I use Porkbun and find that it works very well. The one disadvantage of Cloudflare compared to Porkbun is you cannot edit nameservers with Cloudflare.

DNS

Anything you do with your domain will require you to edit your domain’s DNS settings. This is where you will create records that point your domain to your server. The most common record types you will use are A records, CNAME records, and NS records. A records point a domain or subdomain to an IP address, CNAME records point a domain or subdomain to another domain or subdomain, and NS records point a domain or subdomain to a nameserver.

If you are using a tunneling service, you will likely need to use CNAME records to point your domain to the subdomain provided by the tunneling service. For port forwarding, you will likely need to use A records to point your domain to your server’s IP address.