Abstract
- A mapping between a Hostname to another IP Address or Hostname
- Each record comes with a TTL
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
- Symbol
MX
which stands for Mail Exchanger - Powers Mail Server Aliasing which allow root Domain Name to be mapped to E-mail Server’s Hostname
- In this above example, all the emails sent to
hello@yxy.ninja
is handled by the email servers behindmail.tutanota.de
NS Record
- Symbol is
NS
which stands for Name Server - Domain Name to Hostname of the Authoritative DNS Server