Skip to content

Instantly share code, notes, and snippets.

@mapk0y
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mapk0y/987fe6814994b0b19f6f to your computer and use it in GitHub Desktop.
Save mapk0y/987fe6814994b0b19f6f to your computer and use it in GitHub Desktop.
ftp.jp.debian.org の名前解決がおかしい件

治った模様

DebianJPこうほうチームさんはTwitterを使っています: "利用するDNSサーバーによって、http://t.co/KZ77khUWlZ の名前解決が不安定になっているという話が出ていたので、中の人に修正を依頼してみました。変更が行われたようなので様子を見てくださいませ。またできればML等で不具合情報報告頂けると助かります…"

$ for i in $(dig @d0.org.afilias-nst.org ftp.jp.debian.org ns | awk '/^debian.org/ {print $5}'); do echo "== ${i} ==";dig +short @${i} ftp.jp.debian.org;done
== dns1.easydns.com. ==
cdn.debian.or.jp.
== sec2.rcode0.net. ==
cdn.debian.or.jp.
== dns4.easydns.info. ==
cdn.debian.or.jp.
== debian1.dnsnode.net. ==
cdn.debian.or.jp.
== sec1.rcode0.net. ==
cdn.debian.or.jp.

root dns の確認

$ dig

; <<>> DiG 9.7.3 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54378
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;.                              IN      NS

;; ANSWER SECTION:
.                       36223   IN      NS      g.root-servers.net.
.                       36223   IN      NS      h.root-servers.net.
.                       36223   IN      NS      j.root-servers.net.
.                       36223   IN      NS      k.root-servers.net.
.                       36223   IN      NS      f.root-servers.net.
.                       36223   IN      NS      e.root-servers.net.
.                       36223   IN      NS      l.root-servers.net.
.                       36223   IN      NS      c.root-servers.net.
.                       36223   IN      NS      i.root-servers.net.
.                       36223   IN      NS      d.root-servers.net.
.                       36223   IN      NS      a.root-servers.net.
.                       36223   IN      NS      m.root-servers.net.
.                       36223   IN      NS      b.root-servers.net.

;; Query time: 9 msec
;; SERVER: 210.188.224.11#53(210.188.224.11)
;; WHEN: Sun Mar  1 00:40:27 2015
;; MSG SIZE  rcvd: 228

a.root-servers.net を使って ns を確認

$ dig @a.root-servers.net. ftp.jp.debian.org ns

; <<>> DiG 9.7.3 <<>> @a.root-servers.net. ftp.jp.debian.org ns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32307
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 12
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;ftp.jp.debian.org.             IN      NS

;; AUTHORITY SECTION:
org.                    172800  IN      NS      d0.org.afilias-nst.org.
org.                    172800  IN      NS      b2.org.afilias-nst.org.
org.                    172800  IN      NS      b0.org.afilias-nst.org.
org.                    172800  IN      NS      c0.org.afilias-nst.info.
org.                    172800  IN      NS      a2.org.afilias-nst.info.
org.                    172800  IN      NS      a0.org.afilias-nst.info.

;; ADDITIONAL SECTION:
d0.org.afilias-nst.org. 172800  IN      A       199.19.57.1
d0.org.afilias-nst.org. 172800  IN      AAAA    2001:500:f::1
b2.org.afilias-nst.org. 172800  IN      A       199.249.120.1
b2.org.afilias-nst.org. 172800  IN      AAAA    2001:500:48::1
b0.org.afilias-nst.org. 172800  IN      A       199.19.54.1
b0.org.afilias-nst.org. 172800  IN      AAAA    2001:500:c::1
c0.org.afilias-nst.info. 172800 IN      A       199.19.53.1
c0.org.afilias-nst.info. 172800 IN      AAAA    2001:500:b::1
a2.org.afilias-nst.info. 172800 IN      A       199.249.112.1
a2.org.afilias-nst.info. 172800 IN      AAAA    2001:500:40::1
a0.org.afilias-nst.info. 172800 IN      A       199.19.56.1
a0.org.afilias-nst.info. 172800 IN      AAAA    2001:500:e::1

;; Query time: 51 msec
;; SERVER: 198.41.0.4#53(198.41.0.4)
;; WHEN: Sun Mar  1 00:42:47 2015
;; MSG SIZE  rcvd: 437

ns の抜けがないかの確認

$ for i in $(dig @a.root-servers.net. ftp.jp.debian.org ns | awk '/^org./ {print $5}');do dig @${i} ftp.jp.debian.org ns | awk '/^debian.org/ {print $5}';done | sort | uniq -c
      6 debian1.dnsnode.net.
      6 dns1.easydns.com.
      6 dns4.easydns.info.
      6 sec1.rcode0.net.
      6 sec2.rcode0.net.

各 ns に問い合わせ

これより移譲された DNS は無し

$ for i in $(dig @d0.org.afilias-nst.org ftp.jp.debian.org ns | awk '/^debian.org/ {print $5}'); do echo "== ${i} ==";dig +short @${i} ftp.jp.debian.org;done
== debian1.dnsnode.net. ==
cdn.debian.or.jp.
== dns4.easydns.info. ==
cdn.debian.or.jp.
== dns1.easydns.com. ==
== sec1.rcode0.net. ==
cdn.debian.or.jp.
== sec2.rcode0.net. ==
cdn.debian.or.jp.

状況

dns1.easydns.com が空のレコードを返している

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment