Opscraft
DNS record types · Lesson 4 of 7 · 3 min read

TXT, SRV, CAA, NS and SOA

TXT — free-form text with many jobs

  • Domain ownership verification — Google Search Console, Microsoft 365, Atlassian, GitHub (_github-challenge-<org>.example.com), Let's Encrypt DNS-01 (_acme-challenge), and many SaaS tools give you a TXT value to publish. Deleting such a record later can break integrations or certificate renewals — note who owns each one.
  • SPF, DKIM, DMARC (above).
  • Arbitrary metadata.
dig TXT example.com +short
dig TXT _dmarc.example.com +short

SRV — service location

_service._proto.name.  TTL  IN  SRV  priority  weight  port  target
_ldap._tcp.corp.example.com.  600  IN  SRV  10  60  389  dc1.corp.example.com.
_ldap._tcp.corp.example.com.  600  IN  SRV  10  40  389  dc2.corp.example.com.
_sip._tcp.example.com.        600  IN  SRV  20  0   5060 sip-backup.example.com.
  • Gives clients host and port, with priority (lower first) and weight (load share among equal priorities).
  • Used by Active Directory/LDAP, Kerberos, SIP/VoIP, XMPP, Minecraft, MongoDB (mongodb+srv:// connection strings), Consul, and Kubernetes (named ports on Services get SRV records: _http._tcp.orders.shop.svc.cluster.local).

CAA — which CAs may issue certificates

example.com.  IN  CAA  0 issue "amazon.com"
example.com.  IN  CAA  0 issue "letsencrypt.org"
example.com.  IN  CAA  0 issuewild ";"                       ; no wildcard certificates at all
example.com.  IN  CAA  0 iodef "mailto:[email protected]"

CAs must check CAA before issuing. It reduces the risk of rogue or mistaken issuance. If you add CAA records, make sure every CA you use is listed (ACM is amazon.com/amazontrust.com) — otherwise renewals fail.

NS and SOA

  • NS records name the authoritative servers for a zone; NS records in a parent zone delegate a subdomain to other servers.
  • SOA holds the zone's metadata — primary server, admin email, serial, refresh/retry/expire timers, and the negative-caching TTL.

Both are covered in depth in the name servers topic.

Other types you may meet

Type Purpose
DS Delegation signer — links a child zone's DNSSEC key into the parent
DNSKEY, RRSIG, NSEC/NSEC3 DNSSEC keys, signatures and authenticated denial
HTTPS / SVCB Advertise HTTP/3 support, alternative endpoints and ECH keys — speeds up connection setup
NAPTR Rewriting rules (telephony/ENUM)
SPF type Deprecated — SPF lives in TXT