Abstract
- A mapping between a Hostname to another IP Address or Hostname
- Each record comes with a TTL
Local DNS Record vs Public DNS Record
If we have the DNS Record with the same name on both a Local DNS server and a Public DNS server like
1.1.1.1
. The DNS record inside the local DNS server will always be used if your local DNS server has a record.
Check the status DNS propagation
You can check it on DNS Checker - DNS Check Propagation Tool. This is useful to see if a particular DNS record is taking effect already or not.
Obtain the DNS records of a given domain name
You can obtain the list of current and past DNS records of a given Domain Name at securitytrails.
Or DNSdumpster.com, but the information obtained is much more limited.
A Record
- Symbol is
A
- Standard Domain Name to IP Address mapping
CNAME Record
- Symbol is
CNAME
- Powers Host Aliasing which allows a Alias Hostname to be mapped to Canonical Hostname (CNAME)
- In the above example, all requests go to
notes.yxy.ninja
are handled by servers undernotes.pages.dev
Create CNAME Record for Root Domain
Based on the DNS Specification, We can’t create CNAME Record for Root Domain. The good new is with Cloudflare’s CNAME Flattening, we are able to create a CNAME Record for Root Domain
The CNAME Record we created in the the Cloudflare side directs traffic hitting the root domain to Cloudflare Network
Then Cloudflare will use Cloudflare Page Rule we configured to obtain the IP Address and send back to the clients. This makes it a valid A Record query on the client-side
MX Record
- The symbol
MX
stands for Mail Exchanger - It enables Mail Server Aliasing, allowing the root Domain Name to be mapped to an E-mail Server’s Hostname, directing email traffic to the correct email server
- In the example above, all emails sent to
[email protected]
are handled by the email servers behindmail.tutanota.de
.
Cloudflare's priority attribute
The priority value determines the order in which mail servers are used to deliver emails to your domain. A lower value indicates higher priority, providing redundancy in case one server fails.
NS Record
- Maps a domain name to the hostname of the authoritative DNS server
TXT Record
- TXT records can be used to verify the ownership of a domain name, such as for SPF in email security
Can't be proxied
If we attempt to proxy a TXT record, it may not be served correctly to DNS queries because TXT records are meant to be retrieved directly from the authoritative DNS server. Proxying disrupts this behaviour, defeating the purpose of the TXT record for verification purposes.