{"id":30615,"date":"2022-07-16T14:51:25","date_gmt":"2022-07-16T14:51:25","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=30615"},"modified":"2022-12-23T05:52:22","modified_gmt":"2022-12-23T05:52:22","slug":"what-is-dns-records-most-common-dns-records","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/what-is-dns-records-most-common-dns-records\/","title":{"rendered":"What is DNS records? Most Common DNS records?"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><th>DNS Record<\/th><th>Description<\/th><\/tr><tr><td>A<\/td><td>Maps domain names to IPv4 addresses<\/td><\/tr><tr><td>AAAA<\/td><td>Maps domain names to IPv6 addresses<\/td><\/tr><tr><td>CNAME<\/td><td>Redirects a domain to a different domain<\/td><\/tr><tr><td>PTR<\/td><td>Resolves IPv4 or IPv6 addresses to domain names<\/td><\/tr><tr><td>NS<\/td><td>Provides a list of the authoritative name servers responsible for the domain<\/td><\/tr><tr><td>MX<\/td><td>Provides the domain names of mail servers that receive emails on behalf of a domain<\/td><\/tr><tr><td>SOA<\/td><td>Provides important details about a DNS zone; required for every DNS zone<\/td><\/tr><tr><td>TXT<\/td><td>Provides any type of descriptive information in text format<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What are the most common types of DNS record?<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>A record<\/strong>\u00a0&#8211; The record that holds the IP address of a domain.\u00a0<\/li><li><strong>AAAA record<\/strong>\u00a0&#8211; The record that contains the IPv6 address for a domain (as opposed to A records, which list the IPv4 address).<\/li><li><strong>CNAME record<\/strong>\u00a0&#8211; Forwards one domain or subdomain to another domain, does NOT provide an IP address.\u00a0<\/li><li><strong>MX record<\/strong>\u00a0&#8211; Directs mail to an email server.\u00a0<\/li><li><strong>TXT record<\/strong>\u00a0&#8211; Lets an admin store text notes in the record. These records are often used for email security.\u00a0<\/li><li><strong>NS record<\/strong>\u00a0&#8211; Stores the name server for a DNS entry.<\/li><li><strong>SOA record<\/strong>\u00a0&#8211; Stores admin information about a domain.\u00a0<\/li><li><strong>SRV record<\/strong>\u00a0&#8211; Specifies a port for specific services.\u00a0<\/li><li><strong>PTR record<\/strong>\u00a0&#8211; Provides a domain name in reverse-lookups.\u00a0<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What are some of the less commonly used DNS records?<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>AFSDB record<\/strong>\u00a0&#8211; This record is used for clients of the Andrew File System (AFS) developed by Carnegie Melon. The AFSDB record functions to find other AFS cells.<\/li><li><strong>APL record<\/strong>\u00a0&#8211; The \u2018address prefix list\u2019 is an experiment record that specifies lists of address ranges.<\/li><li><strong>CAA record<\/strong>\u00a0&#8211; This is the \u2018certification authority authorization\u2019 record, it allows domain owners state which certificate authorities can issue certificates for that domain. If no CAA record exists, then anyone can issue a certificate for the domain. These records are also inherited by subdomains.<\/li><li><strong>DNSKEY record<\/strong>\u00a0&#8211; The \u2018DNS Key Record\u2019 contains a\u00a0public key\u00a0used to verify\u00a0Domain Name System Security Extension (DNSSEC)\u00a0signatures.<\/li><li><strong>CDNSKEY record<\/strong>\u00a0&#8211; This is a child copy of the DNSKEY record, meant to be transferred to a parent.<\/li><li><strong>CERT record<\/strong>\u00a0&#8211; The \u2018certificate record\u2019 stores public key certificates.<\/li><li><strong>DCHID record<\/strong>\u00a0&#8211; The \u2018DHCP Identifier\u2019 stores info for the Dynamic Host Configuration Protocol (DHCP), a standardized network protocol used on IP networks.<\/li><li><strong>DNAME record<\/strong>\u00a0&#8211; The \u2018delegation name\u2019 record creates a domain alias, just like CNAME, but this alias will redirect all subdomains as well. For instance if the owner of \u2018example.com\u2019 bought the domain \u2018website.net\u2019 and gave it a DNAME record that points to \u2018example.com\u2019, then that pointer would also extend to \u2018blog.website.net\u2019 and any other subdomains.<\/li><li><strong>HIP record<\/strong>\u00a0&#8211; This record uses \u2018Host identity protocol\u2019, a way to separate the roles of an IP address; this record is used most often in mobile computing.<\/li><li><strong>IPSECKEY record<\/strong>\u00a0&#8211; The \u2018IPSEC key\u2019 record works with the\u00a0Internet Protocol Security (IPSEC), an end-to-end security protocol framework and part of the Internet Protocol Suite\u00a0(TCP\/IP).<\/li><li><strong>LOC record<\/strong>\u00a0&#8211; The \u2018location\u2019 record contains geographical information for a domain in the form of longitude and latitude coordinates.<\/li><li><strong>NAPTR record<\/strong>\u00a0&#8211; The \u2018name authority pointer\u2019 record can be combined with an\u00a0SRV record\u00a0to dynamically create URI\u2019s to point to based on a regular expression.<\/li><li><strong>NSEC record<\/strong>\u00a0&#8211; The \u2018next secure record\u2019 is part of DNSSEC, and it\u2019s used to prove that a requested DNS resource record does not exist.<\/li><li><strong>RRSIG record<\/strong>\u00a0&#8211; The \u2018resource record signature\u2019 is a record to store digital signatures used to authenticate records in accordance with DNSSEC.<\/li><li><strong>RP record<\/strong>\u00a0&#8211; This is the \u2018responsible person\u2019 record and it stores the email address of the person responsible for the domain.<\/li><li><strong>SSHFP record<\/strong>\u00a0&#8211; This record stores the \u2018SSH public key fingerprints\u2019; SSH stands for Secure Shell and it\u2019s a cryptographic networking protocol for secure communication over an unsecure network.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"626\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/07\/dns-cheat-sheet-1-1024x626.png\" alt=\"\" class=\"wp-image-30616\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/07\/dns-cheat-sheet-1-1024x626.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/07\/dns-cheat-sheet-1-300x183.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/07\/dns-cheat-sheet-1-768x469.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/07\/dns-cheat-sheet-1-1536x938.png 1536w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/07\/dns-cheat-sheet-1.png 1830w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ftoc-heading-1\">A Record<\/h2>\n\n\n\n<p><strong>A (address) records<\/strong>&nbsp;are one of the most basic and commonly used DNS record types. They translate domain names and store them as IP addresses. A records can only hold IPv4 addresses.<\/p>\n\n\n\n<p>An example of an A record is:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Domain name:<\/strong><\/td><td><strong>Record type:<\/strong><\/td><td><strong>Value:<\/strong><\/td><td><strong>TTL<\/strong><\/td><\/tr><tr><td>example-website.com @<\/td><td>A<\/td><td>192.0.0.1<\/td><td>14400<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In the example above, the record is made up of the following elements:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Domain name:<\/strong>&nbsp;Contains the domain name of the website. The &#8220;@&#8221; symbol indicates that the record contains the root domain name.<\/li><li><strong>Record type:<\/strong>&nbsp;Indicates the usage of an A record type.<\/li><li><strong>Value:<\/strong>&nbsp;Contains the IP address associated with the domain name.<\/li><li><strong>TTL:<\/strong>&nbsp;Lists the record&#8217;s TTL (Time to Live) in seconds. The default value is 14400, which means the record expires after 14400 seconds (240 minutes).<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ftoc-heading-7\">CNAME Record<\/h2>\n\n\n\n<p>A&nbsp;<strong>CNAME (canonical name) record<\/strong>&nbsp;is used instead of an A record if a domain is an alias for another domain. Because of this, all CNAME records point to a domain instead of an IP address.<\/p>\n\n\n\n<p>For example, in a domain called&nbsp;<strong>alias-domain.com<\/strong>&nbsp;which works as an alias for&nbsp;<strong>real-domain.com<\/strong>, a CNAME record for would look like this:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Domain name:<\/strong><\/td><td><strong>Record type:<\/strong><\/td><td><strong>Value:<\/strong><\/td><td><strong>TTL<\/strong><\/td><\/tr><tr><td>alias-domain.com @<\/td><td>CNAME<\/td><td>real-domain.com<\/td><td>14400<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>This record contains:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Domain name:<\/strong>&nbsp;Contains the alias domain name. The &#8220;@&#8221; symbol shows that this is a root domain name.<\/li><li><strong>Record type:<\/strong>&nbsp;Shows that this is a CNAME record.<\/li><li><strong>Value:<\/strong>&nbsp;Contains the real domain name that the alias domain is pointing to.<\/li><li><strong>TTL:<\/strong>&nbsp;Time left until the record expires.<\/li><\/ul>\n\n\n\n<p>CNAME records usually contain subdomains that point to a domain&#8217;s A or AAAA record. This prevents having to create an extra A or AAAA record for each subdomain.<\/p>\n\n\n\n<p>It is not recommended to have CNAME records pointing to other CNAME records, as this creates unnecessary steps to the DNS lookup process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ftoc-heading-15\">MX Record<\/h2>\n\n\n\n<p><strong>MX (mail exchange) records<\/strong>&nbsp;store instructions for directing emails to mail servers following the SMTP protocol. An MX record might look like:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Domain name:<\/strong><\/td><td><strong>Record type:<\/strong><\/td><td><strong>Priority:<\/strong><\/td><td><strong>Value:<\/strong><\/td><td><strong>TTL:<\/strong><\/td><\/tr><tr><td>example-website.com @<\/td><td>MX<\/td><td>10<\/td><td>mail.example-website.com<\/td><td>14400<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In this example:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Domain name:<\/strong>\u00a0Specifies the domain name.<\/li><li><strong>Record type:<\/strong>\u00a0Indicates an MX record.<\/li><li><strong>Priority:<\/strong>\u00a0Specifies preference when delivering mail, with lower values having higher priority. If there is a failure to deliver, the mail will be redirected to a lower-priority email server.<\/li><li><strong>Value:<\/strong>\u00a0Specifies an email server for the domain name.<\/li><li><strong>TTL:<\/strong>\u00a0Time left to record expiration.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ftoc-heading-21\">PTR Record<\/h2>\n\n\n\n<p><strong>PTR (pointer) records<\/strong>&nbsp;serve as an inverse of A or AAAA records. They map IP addresses to domain names and help perform reverse DNS lookups.<\/p>\n\n\n\n<p>PTR records store IP addresses in reverse:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>IPv4 addresses are saved with the segments in reverse order.<\/li><li>IPv6 addresses are saved in the reverse order of hexadecimal digits.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ftoc-heading-25\">SOA Record<\/h2>\n\n\n\n<p>The&nbsp;<strong>SOA (start of authority) record<\/strong>&nbsp;holds important information about a domain or zone. These records are required by IETF standards and are an important element of zone transfers.<\/p>\n\n\n\n<p>SOA records detail the following zone properties:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Name:<\/strong>\u00a0Name of the primary DNS server for the zone. Each primary server should also have a matching NS record.<\/li><li><strong>Record type:<\/strong>\u00a0Indicates that this is an SOA record.<\/li><li><strong>MNAME:<\/strong>\u00a0Specifies the primary nameserver for the zone.<\/li><li><strong>RNAME:<\/strong>\u00a0The email address of the person responsible for the zone.<\/li><li><strong>Serial:<\/strong>\u00a0The zone&#8217;s serial number.<\/li><li><strong>Refresh:<\/strong>\u00a0The number of seconds between checking for record updates.<\/li><li><strong>Retry:<\/strong>\u00a0The number of seconds before asking an unresponsive primary nameserver for another update.<\/li><li><strong>Expire:<\/strong>\u00a0How long to retry updating an unresponsive nameserver before stopping.<\/li><li><strong>TTL:<\/strong>\u00a0Time until record expires.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ftoc-heading-26\">SRV Record<\/h2>\n\n\n\n<p><strong>SRV (service) records<\/strong>&nbsp;store host and port information for internet services, such as email or VoIP. Some internet protocols need valid SRV records to function.<\/p>\n\n\n\n<p>SRV records hold the following information:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Service:<\/strong>\u00a0Symbolic name for a service.<\/li><li><strong>Protocol:<\/strong>\u00a0Specifies if the service is using TCP or UDP protocols.<\/li><li><strong>Name:<\/strong>\u00a0Stores a domain name.<\/li><li><strong>TTL:<\/strong>\u00a0Time left until record expires.<\/li><li><strong>Class:<\/strong>\u00a0Can contain\u00a0<strong>IN<\/strong>\u00a0(default),\u00a0<strong>CH<\/strong>\u00a0(used for querying DNS server versions), or\u00a0<strong>HS<\/strong>\u00a0(uses DNS functionality to provide access to databases).<\/li><li><strong>Type:<\/strong>\u00a0Specifies record type as SRV.<\/li><li><strong>Priority:<\/strong>\u00a0Determines which server is looked at first, with lower values giving higher priority.<\/li><li><strong>Weight:<\/strong>\u00a0Determines which server is looked at first if more than one has the same priority value. Higher values give more priority.<\/li><li><strong>Port:<\/strong>\u00a0The TCP or UDP port the service is running on.<\/li><li><strong>Target:<\/strong>\u00a0The canonical hostname for the machine providing the service.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ftoc-heading-28\">TXT Record<\/h2>\n\n\n\n<p><strong>TXT (text) records<\/strong>&nbsp;are used to store descriptive text. They are often used in combination with other record types to provide additional information that doesn&#8217;t fit the format of other records.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Domain name:<\/strong><\/td><td><strong>Record type:<\/strong><\/td><td><strong>Value:<\/strong><\/td><td><strong>TTL:<\/strong><\/td><\/tr><tr><td>example-website.com @<\/td><td>TXT<\/td><td>Example text.<\/td><td>14400<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The example above shows a typical TXT record. It contains the following elements:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Domain name:<\/strong>&nbsp;Specifies a domain name.<\/li><li><strong>Record type:<\/strong>&nbsp;Shows that this is a TXT record.<\/li><li><strong>Value:<\/strong>&nbsp;Stores a user-defined text string.<\/li><li><strong>TTL:<\/strong>&nbsp;Time until record expires.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>DNS Record Description A Maps domain names to IPv4 addresses AAAA Maps domain names to IPv6 addresses CNAME Redirects a domain to a different domain PTR Resolves IPv4 or IPv6&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-30615","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=30615"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30615\/revisions"}],"predecessor-version":[{"id":30619,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30615\/revisions\/30619"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=30615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=30615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=30615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}