diff --git a/blog_posts/dns-record-basics.md b/blog_posts/dns-record-basics.md new file mode 100644 index 000000000..4d89a5398 --- /dev/null +++ b/blog_posts/dns-record-basics.md @@ -0,0 +1,25 @@ +--- +title: DNS Record Basics +type: cheatsheet +tags: webdev,dns,server,cheatsheet +authors: chalarangelo +cover: blog_images/sparkles.jpg +excerpt: DNS records may not be a thing you work too often with. Regardless, some basic knowledge can go a long way. +firstSeen: 2022-01-09T05:00:00-04:00 +--- + +Most web developers go about their day-to-day without having to deal with DNS records most of the time. Regardless, knowing what DNS stands for and the types of DNS records are pretty useful. + +### DNS Definition + +The Domain Name System (abbreviated to DNS), translates human-readable domain names (e.g www.google.com to machine-readable IP addresses (e.g. 142.250.186.46). + +### DNS Records + +A DNS is made up of multiple records of different types, each one with its own purpose. Here's a breakdown of the most commonly-used ones: + +- **A record**: The address record. Used to map a domain name to an IPv4 address. Similarly, the **AAAA record** is used to map a domain name to an IPv6 address. +- **CNAME records**: A canonical name record. Creates an alias that points to another domain or subdomain, but never an IP address. +- **ANAME record**: Allows you to point the root of your domain to a hostname or a domain name. +- **TXT records**: Allow the addition of limited text notes and is often used for ownership verification purposes, validation or security. +- **MX record**: Specifies the mail server responsible for accepting the incoming and outgoing emails for a domain. Should point to a mail server name, not an IP address.