Your internet will never work properly without DNS or DNS Records.
- In order to navigate to a website you need to convert
www.mysite.comto it’s IP address. It’s also highly useful for emails.
- DNS acts as phone-book of internet helping you to navigates to all the websites you love.
Different Types of DNS Records
A recordmaps 🗺 domain to IP address (IPv4). 😎
AAAA recordmaps 🗺 domain to IPv6 address.
ALIAS recordmaps a name to another name, but can coexist with other records on that name.
- ALIAS Records map a domain name to another name, which makes it possible to ‘alias’ the root domain. That basically means they can send users searching for a root domain (like a .com) to a different domain name/website—whichever one you want to send them to. It behaves like an A Record, and because A Records don’t have the limitations of CNAME Records the ALIAS doesn’t inherit them.
CNAME Recordmaps 🗺 domain to
CNAME record. 😂
- 👌 Use only when there are no other records on that name.
- You can think of it as a pointer 👆 in C\C++.
CNAMERecord takes priority over any other resource record for a given hostname. As such, a
CNAMEcannot coexist with any other resource record, such as
TXT Records. So if you had these other records/services for your
example.blogdomain they would cease to work, as
CNAME Recordsalways take precedence.
someblog.com. CNAME user.github.io.
MX recordshows the mail server responsible for accepting email messages on for given domain name.
Pointer Recordmaps an IP address to a 🔵 Fully Qualified Domain Name (FQDN).
- 🔵 Also known as reverse DNS records.
Checking for domain aa.xx.yy.zz
nslookup -type=ptr aa.xx.yy.zz 18.104.22.168
dig -x zz.yy.xx.aa @22.214.171.124