What is a DNS record and its types?

DNS record and its types

Table of Contents

What is a DNS record and its types?




DNS records are databases which map URLs to IP addresses in a human-friendly manner,





In this article, we will discuss the overview of DNS records and their types.







What is a DNS record?





A DNS record (aka zone file) is a combination of instructions and data that is stored in authoritative DNS servers and allows them to provide information about a domain, such as what IP addresses are associated with it and how to handle DNS requests for it. A DNS record consists of a series of text files that are written using a syntax known as DNS syntax.



DNS syntax is a series of characters that tells the DNS server how to act. There is also a DNS record called a TTL, or time-to-live, which indicates how often that record is refreshed by a DNS server.





1. A Record





An A record points a domain or subdomain to a specific IP address. This can be used for store.market.com or blog.market.com, and it can point to the market where you have your business. The practice is very common among people who purchase from Best Buy, Amazon, etc.


A Record points a logical domain name, such as “google.com,” to an IP address, such as, of Google’s hosting server.











You can update your A Record of one domain or subdomain every time, no matter how many Host Records need to point to that IP address, with a CNAME (Canonical Name) technique. These records point to www.test.com to test.com, imap.test.com to mail.test.com, and docs.test.com to ghs.google.com. The first record allows the domain to resolve to either the www subdomain or the same server. You can use the second record to host and deliver email from an alternative subdomain. With the third record, you can access G Suite’s document management system via docs.test.com. Adding this type of record to Google requires additional configuration.






3. MX Entry






In MX entries (Mail Exchangers), email is directed to specific servers. In the same way, MX Entries must be pointing to a domain, not an IP address.





4. TXT Records






It was originally intended that a TXT (Text) record contains human-readable text. Several purposes can be served by these records, which are dynamic. Google Verification frequently uses TXT records.In TXT records there is a value to point to, but they aren’t used to direct any traffic. Rather, they provide needed information to outside sources.






5. SRV record





By using an SRV (Service) record, one domain points to another domain using a specific destination port. A SRV record can also direct specific services, such as VoIP or Instant Messaging, to different locations.





6. AAAA Record






An IPv6 address can be pointed at a domain using the AAAA record, just as the A record does.








DNS Glossary:







Zone File – The DNS records for a domain are stored here.




Host Record – You can use this domain or subdomain. Root domains are indicated by the @ symbol. ‘ftp’ represents the subdomain ftp.google.com and ‘@’ represents google.com.





Points to – Using this, a domain or subdomain can send traffic to a destination server.





TTL – Your Internet provider’s DNS Server caches a record for a given amount of time, which is the ‘time to live’ value. 14400 seconds (4 hours) is the default (and lowest accepted) value. Normally, this value does not need to be modified.





Action – Using this feature, you can modify or delete existing records.





Weight –  Multiple records are used in this order, which works similarly to priority. A record is grouped with other records that have the same Priority value. The lower number preceding the higher one is carried over from MX Entries.





Port – This allows the server or computer to make sure that all traffic flows through the proper door, making sure that all traffic arrives where it’s expected to.





Target – Using this record, traffic is being sent to the specified destination.









That’s it!








Our goal in writing this article is to give you an overview of DNS records and types, and we hope this article has given you a better understanding.









Get the most out of learning with VPSie.com

Share on