DNS

Self-Hosting Mar 7, 2021

Once you have a Domain Name you can then Manage your DNS. Although you can self-host your own DNS, it’s recommended to use a DNS provider as they can protect against DDOS attacks and usually have a global network resulting in low response times.

A DNS Provider allows you to link domain/sub-domains to servers. You can say set cloud.example.com to resolve into the IP address 127.20.181.92.

DNS Providers

When choosing a DNS provider, you should check to find out if they use a global network, this will give you low response times globally. DNSSEC is also recommended for security as this validates the authenticity of the DNS response.

A list of DNS Providers can be found below. Please email us any others you can recomend :)

Provider | Cost | Location | DNSSEC
--- | --- | --- | --- | ---
Vultr | Free | Global (Anycast) | ✅ |
DigitalOcean | Free | Global (Cloudflare) | ✅ |
Hurricane Electric | Free | Global (Anycast) | ❌ |
Cloudflare | Free | Global (Anycast) | ✅ |
dnsimple| $6/month | Global (Anycast) | ✅ |
dnsmadeeasy | Free Trial | Global (Anycast) | ✅ |

DNS Performance Comparison: https://www.dnsperf.com

A Record
Using an A record will resolve the domain into an IPV4 address.

AAAA Record
The AAAA record is used to map to a IPV6 address.

CNAME (Canonical Name Record)
This maps your domain to another domain. It is commonly used when mapping multiple domains to the same IP/Server.
This is how I’d recommend you setup your DNS. An example can be seen below

Type | Name | Value |
--- | --- | --- | --- | ---
A | server.example.com | 127.219.81.73
CNAME | cloud.example.com | server.example.com
CNAME | video.example.com | server.example.com
CNAME | viewer .example.com | server.example.com
In the event of migrating server’s or an IP change you will only need to adjust one record.

TTL (Time To Live)
TTL is the lifespan (in seconds) that that record is valid for, and can be cached for on the DNS Network. Having a high TTL can result in low response times, but if your IP changes frequently you risk having incorrect DNS entries floating about.

TXT
A TXT Record allows you to map a domain to a text value, this is commonly used to extend the DNS system for additional records and to prove domain ownership.

MX (Mail Exchanger)
The MX record specifies the location of your email server. This is used by email proviers to understand where to send emails to for your domain.


Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.