Glue Recordとは何ですか?
A Glue Recordは、ネームサーバのホスト名が機能するドメイン内のIPアドレスを提供する親DNSゾーンに格納されているAまたはAAAAAAのレコードです。
円の依存性問題
Without Glue Records (Circular Dependency):
Query: "What is the IP of www.example.com?"
↓
Resolver asks: "Who are the nameservers for example.com?"
↓
Answer: ns1.example.com
↓
Resolver asks: "What is the IP of ns1.example.com?"
↓
Needs to query example.com nameservers...
↓
But we don't know their IP! (Loop)
Glueレコードがこれをどのように解決するか
With Glue Records at .com TLD:
.com Zone File:
example.com. NS ns1.example.com.
example.com. NS ns2.example.com.
ns1.example.com. A 192.0.2.1 ← Glue Record
ns2.example.com. A 192.0.2.2 ← Glue Record
Resolution Flow:
Query for www.example.com
↓
.com servers return NS records + Glue IPs
↓
Resolver can now contact 192.0.2.1 directly
↓
Resolution completes successfully
接着剤の記録が要求されるとき
| ネームサーバーの場所 | 必要な接着剤 | 事例紹介 |
|---|---|---|
| 同じドメイン内 | はい | example.com用ns1.example.com |
| 異なるドメイン | いいえ。 | example.com用ns1.hostingco.com |
| ターゲットのサブドメイン | はい | example.com用ns1.dns.example.com |
接着剤の記録タイプ
| 記録のタイプ | ミッション | 事例紹介 |
|---|---|---|
| ツイート | nameserver の IPv4 アドレス | ns1.example.com 192.0.2.1の特長 |
| AAAAAAAAの特長 | nameserver の IPv6 アドレス | ns1.example.com AAAA 2001:db8::1 |
一般的な構成シナリオ
Scenario 1: Self-hosted nameservers
Domain: example.com
Nameservers: ns1.example.com, ns2.example.com
→ Glue records REQUIRED at registrar
Scenario 2: Third-party nameservers
Domain: example.com
Nameservers: dns1.provider.com, dns2.provider.com
→ No glue records needed
Scenario 3: Vanity nameservers pointing elsewhere
Domain: example.com
Nameservers: ns1.example.com → CNAME dns1.provider.com
→ INVALID - NS records cannot point to CNAMEs
→ Must use glue records with actual IPs
Glueレコードの管理
ドメインレジストラでは、DNS ゾーンではなく、Glue レコードが構成されます。
1. レジストラコントロールパネルにログイン
2. 名前サーバー/ホストレコードセクションに移動
3. ホストレコードをネームサーバのホスト名とIPで作成
4. これらのネームサーバをドメインに割り当てる
ベストプラクティス
1. IPv4 および IPv6 の両方を提供して下さい: AとAAAAの接着剤レコードを追加
2. 複数のIPを使用する: ns1 と ns2 の異なる IP は冗長性
3. キープレコード更新: 名前サーバ IP が変更した場合の接着剤を変更
4. 伝搬確認: dig +traceで接着剤をチェック
トラブルシューティング
# Check glue records for a domain
dig +trace example.com NS
# Verify glue is present in TLD response
dig @a.gtld-servers.net example.com NS +norec
Glue レコードは、ドメインがホストされている名前サーバーを、再解決可能な DNS 階層を維持しながら使用できるようにする必須 DNS インフラストラクチャです。