Tool Hub

DNS レコード

DNS レコードタイプの検索・解説 — 例・用途・RFC リファレンス

DNS レコードタイプのリファレンスです。各エントリには説明、ゾーンファイルの例、使用するタイミングのメモが含まれています。

14 レコードタイプ
A
Address (IPv4)RFC 1035

Maps a hostname to a 32-bit IPv4 address.

例

example.com.    300    IN  A    93.184.216.34

使用するタイミング

Standard hostname → IPv4 mapping. Most websites have at least one A record.

AAAA
Address (IPv6)RFC 3596

Maps a hostname to a 128-bit IPv6 address.

例

example.com.    300    IN  AAAA  2606:2800:220:1:248:1893:25c8:1946

使用するタイミング

IPv6 endpoint resolution. Modern dual-stack deployments include both A and AAAA.

CNAME
Canonical NameRFC 1035

Alias of one hostname to another. The DNS lookup follows the alias.

例

www.example.com.   300   IN  CNAME  example.com.

使用するタイミング

Pointing subdomains (www, app) to a primary host. Cannot coexist with other records on the same name.

MX
Mail ExchangeRFC 1035

Specifies mail servers for a domain, with a priority value.

例

example.com.    300    IN  MX    10 mail.example.com.

使用するタイミング

Required for receiving email. Lower priority = higher preference.

TXT
テキストRFC 1035

Arbitrary text strings. Used for verification and policy declarations.

例

example.com.    300    IN  TXT   "v=spf1 include:_spf.google.com ~all"

使用するタイミング

SPF/DKIM/DMARC email auth, domain verification (Google/Facebook), public keys.

NS
Name ServerRFC 1035

Delegates a DNS zone to authoritative name servers.

例

example.com.    300    IN  NS    ns1.example.com.

使用するタイミング

Required at the apex of every zone. Lists which servers answer queries for this domain.

SOA
Start of AuthorityRFC 1035

Authoritative info about the zone: primary NS, admin email, serial, timers.

例

example.com.   3600   IN  SOA   ns1.example.com. admin.example.com. 2026050701 7200 3600 1209600 3600

使用するタイミング

Exactly one per zone, at the apex. Required by DNS spec.

SRV
Service LocatorRFC 2782

Specifies the host/port for a service — protocol, weight, priority.

例

_sip._tcp.example.com. 300 IN SRV 10 60 5060 sipserver.example.com.

使用するタイミング

SIP/XMPP/LDAP/Minecraft service discovery. Format: _service._proto.name.

CAA
Certification Authority AuthorizationRFC 8659

Restricts which CAs can issue TLS certificates for the domain.

例

example.com.   300    IN  CAA   0 issue "letsencrypt.org"

使用するタイミング

Prevent unauthorized CAs from issuing certs for your domain. Recommended for security.

PTR
Pointer (Reverse DNS)RFC 1035

Maps an IP address back to a hostname (in in-addr.arpa or ip6.arpa).

例

34.216.184.93.in-addr.arpa.  300  IN  PTR  example.com.

使用するタイミング

Reverse DNS for email server reputation (spam filters), logging.

HTTPS
HTTPS Service BindingRFC 9460

Encrypted ALPN/SNI hints for HTTPS connections; supports ECH.

例

example.com.   300    IN  HTTPS  1 . alpn="h3,h2"

使用するタイミング

Modern HTTPS optimization (HTTP/3 hint, encrypted client hello). Browser support growing.

SVCB
Service BindingRFC 9460

Generic service binding (HTTPS is a specific subtype).

例

_dns.example.com. 300 IN SVCB 1 dns.example.com. alpn="dot"

使用するタイミング

Generic service alias with hints (e.g., DNS over TLS). Less common than HTTPS.

DS
Delegation SignerRFC 4034

DNSSEC — fingerprint of child zone's KSK, stored in parent zone.

例

example.com. 86400 IN DS 12345 13 2 ABC123...

使用するタイミング

DNSSEC chain of trust. Required when a zone is DNSSEC-signed.

DNSKEY
DNS Public KeyRFC 4034

DNSSEC — public key for verifying signatures in the zone.

例

example.com. 86400 IN DNSKEY 257 3 13 ABC456...

使用するタイミング

DNSSEC verification. Stored at zone apex; signed by KSK referenced by parent's DS.

使い方

  1. 検索フィールドにレコードタイプ、キーワード、またはユースケースを入力します (例: 「MX」、「メール」、「DNSSEC」)。
  2. 一致するカードを閲覧します。各カードはレコードタイプバッジ、フルネーム、RFC リファレンス、説明、具体的な例、使用時期を表示します。
  3. フィールドを空のままにして、14 個のすべてのレコードタイプを一度に表示します。

例

  • 「MX」を検索するとメール交換レコード、RFC 1035、例「example.com. IN MX 10 mail.example.com.」が表示され、ドメインのメール をルーティングするために使用されることが説明されています。
  • 「DNSSEC」を検索すると、DNS レスポンスがどのように暗号的に署名されるかを説明する DS と RRSIG カードが返されます。

本番環境で使用する前に出力を検証してください。保証なし — 詳細は 利用規約.