DNSレコード: shadowed records

サブドメインを NS レコードで委任したとき、その名前以下に残っているレコードのこと。権威が委任先に移るので応答されない。エラーにならないので気づきにくい。

sub.example.com      NS  ns1.other.net   ← 委任
api.sub.example.com  A   192.0.2.1       ← shadowed(応答されない)

何が困るか(どちらもエラーにならない)。例: Cloudflare の example.com ゾーンで、sub.example.com を ns1.other.net(別の DNS 業者)に委任している場合。

  • 後から委任した: 元々 Cloudflare に api.sub があっても、問い合わせは other.net に行く。other.net に api.sub が無ければ突然引けなくなる
  • 委任した後に Cloudflare で足した: Cloudflare の画面に api.sub を足しても、問い合わせは other.net に行くので効かない。足すべき場所は other.net 側

参考: https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records/