This guide helps you configure DNS with your own custom domain name like artmenagerie.app or argentarius.art for example.
Whether you are self-hosting or using a web host provider, you will need to configure DNS if you want to use your custom domain name.
Buy a Custom Domain Name
If you want a custom domain name, like artmenagerie.app is the custom domain name for Art Menagerie, then you need to buy one from a Domain Name Registrar.
⚠ Warning: Registering a domain name normally means publishing your private information publicly in that anyone can access with WHOIS. It is important to find a Domain Name Registrar that gives you Domain privacy or your mailing address, phone number, email address, and legal name may be publicly available!
Some Domain Name Registrars that respect privacy:
Art Menagerie is not affiliated with any of these. Please make sure to do your own research. This is just to help you get started.
Have suggestions? Feel free to send them in the Forum!
DNS Records
Your Domain Name Registrar usually provides a way for you to edit your DNS records.
The examples use the raw DNS record syntax, but your provider may provide a pretty UI that hides some details.
There are many types of DNS records, but you only need to learn a few:
AandAAAAboth point a name to an IP address. AnArecord is for IPv4 addresses and anAAAArecord is for IPv6 addresses. Here is an example:@ 10800 IN A 5.75.248.230 @ 10800 IN AAAA 2a01:4f8:c012:64ee::1Let's break down each part of this record:
@means "this zone", and expands your domain name, likeartmenagerie.app.We could usewwworcodeif we wanted to create the record for a subdomain.10800is the time-to-live (TTL). This is how long your record can be cached in seconds. This TTL is 3 hours.INmeans the next part is the record type. This is not usually seen in most web UIs, so it is not usually set unless editing the your record in raw text form.AorAAAAis the record type.5.75.248.230or2a01:4f8:c012:64ee::1are the IPv4 and IPv6 addresses respectively.
CNAMEis like an alias or pointer. Use this to point a subdomain to another record with the answer. It is important to not set@(your domain name) with aCNAMErecord; only use this type for subdomains. Here is an example:www 10800 IN CNAME artmenagerie.app.This makes
www.artmenagerie.appthe same address asartmenagerie.app!Let's break down each part of this record:
wwwis the subdomain which expands likewww.artmenagerie.app.10800is the time-to-live (TTL). This is how long your record can be cached in seconds. This TTL is 3 hours.INmeans the next part is the record type. This is not usually seen in most web UIs, so it is not usually set unless editing the your record in raw text form.CNAMEis the record type.artmenagerie.app.is the record that can be looked up for the answer. The ending dot.is required and signals that this is not a subdomain. Typically this will point to a domain with anAorAAAArecord.
CAArecords are optional, but can help secure your HTTPS website. These records may limit what certificate authorities can sign certificates for this domain. If a certificate authority is compromised, this reduces the chance another website can pretend it is yours with HTTPS enabled. Here is an example:@ 86400 IN CAA 128 issue "letsencrypt.org" @ 86400 IN CAA 128 issue "digicert.com"Let's break this example down:
@means "this zone", and expands your domain name, likeartmenagerie.app.You do not need to create CAA records for subdomains since subdomains inherit from the domain CAA record.86400is the time-to-live (TTL). This is how long your record can be cached in seconds. This TTL is 1 day.INmeans the next part is the record type. This is not usually seen in most web UIs, so it is not usually set unless editing the your record in raw text form.CAAis the record type.128is the flag. This can either be0(not critical) and128(critical). When critical, the certificate authority must refuse to sign if it does not understand or support a setting.issueis the tag. This particular tag allows a certificate authority to issue a certificate for the domain and subdomains."letsencrypt.org"and"digicert.com"are the values. These are the certificate authorities we are allowing for this domain (and subdomains).
Dynamic DNS (DDNS)
If you are self-hosting from home, your Internet service provider (ISP) likely changes your IP address regularly. This makes it difficult to set a DNS record that keeps changing!
This is where you need Dynamic DNS (DDNS) to automatically update your DNS record with your IP address changes.
Njalla supports Dynamic DNS records, but there are also other providers that support this as well.