DNS is a very critical part of the Linux operation world. We will cover the most common DNS records today. All domains are required to have at least a few essential DNS records for a user to be able to access their website using a domain name.
Common Types of DNS Records
Here are 4 commonly used DNS records.
A record - A record is used to map a domain (e.g., mystunningwebsite.com) or a sub-domain (e.g., blog.mystunningwebsite.com) to an IP address or many ips.
PTR record - Provides a domain name in reverse-lookups. eg. (220.127.116.11 -- howtouselinux.com)
CNAME record - also known as canonical name records, are used to create aliases that point to other names. They are commonly used to map WWW, FTP and MAIL sub-domains to a domain.
MX record - MX (Mail Exchange) records control how incoming email is routed for your domain.
More DNS Records
Here are 6 more DNS records.
TXT record - TXT (text) records are used to provide textual information about a domain (like the name of the host and contact details) to external sources.
SPF record - Sender Policy Framework (SPF) is an email validation system designed to prevent email spam by verifying sender IP addresses.
NS record - NS records define which name servers contain the DNS records for a domain.
SOA record - Stores admin information about a domain.
SRV record - SRV records (also known as service records) are responsible for localizing specific domain-related services such as FTP, HTTP, and SIP.
AAAA record - maps a domain name to the IP address (Version 6) of the computer hosting the domain. An AAAA record is used to find the IP address of a computer connected to the internet from a name.