Sobes.tech
Junior — Middle

Can you list the main types of DNS records and their purposes?

sobes.tech AI

Answer from AI

Main types of DNS records and their purposes:

  • A (Address) — links a domain name to an IPv4 address.
  • AAAA — links a domain name to an IPv6 address.
  • CNAME (Canonical Name) — creates an alias for another domain name.
  • MX (Mail Exchange) — indicates the mail server for the domain.
  • TXT — stores arbitrary text, often used for SPF, DKIM, and other checks.
  • NS (Name Server) — indicates authoritative DNS servers for the zone.
  • PTR (Pointer) — reverse record, links an IP address to a domain name.
  • SRV (Service) — indicates services and ports, e.g., for SIP or XMPP.

Example of an A record:

example.com. IN A 93.184.216.34