Types of DNS Records

A Record (Address Record): An A record points a hostname to a specific IP address12. For example, if you want blog.example.com to point to the server with IP 185.31.17.133, you would configure an A record for blog.example.com with the value 185.31.17.13312. A records only hold IPv4 addresses12.

NS Record (Name Server Record): An NS record indicates which DNS server is authoritative for that domain (i.e., which server contains the actual DNS records)345. Basically, NS records tell the Internet where to go to find out a domain’s IP address345. A domain often has multiple NS records which can indicate primary and secondary nameservers for that domain.

CNAME Record (Canonical Name Record): A CNAME record points a hostname to another hostname instead of an IP address. For example, if blog.example.com is a CNAME of example.com, then any DNS lookup of blog.example.com would return the IP address of example.com. All CNAME records must point to a domain, never to an IP address.

There are many other types of DNS records: https://phoenixnap.com/kb/dns-record-types

posted @ 2024-06-05 14:30  LexLuc  阅读(5)  评论(0编辑  收藏  举报