BIND DNS 解析 DNS 的奇怪行为

BIND DNS 解析 DNS 的奇怪行为

CentOS 6.3 BIND 版本 9.8.2

服务器充当我的本地网络的 DNS 服务器。

发生的情况是,我可以正常解析 jquery.com,但是从本地主机查询时访问 code.jquery.com 却找不到任何内容。

dig jquery.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.5 <<>> jquery.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38326
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 6

;; QUESTION SECTION:
;jquery.com.                    IN      A

;; ANSWER SECTION:
jquery.com.             3600    IN      A       70.32.120.34

;; AUTHORITY SECTION:
jquery.com.             168983  IN      NS      ns11.dnsmadeeasy.com.
jquery.com.             168983  IN      NS      ns14.dnsmadeeasy.com.
jquery.com.             168983  IN      NS      ns13.dnsmadeeasy.com.
jquery.com.             168983  IN      NS      ns15.dnsmadeeasy.com.
jquery.com.             168983  IN      NS      ns10.dnsmadeeasy.com.
jquery.com.             168983  IN      NS      ns12.dnsmadeeasy.com.

;; ADDITIONAL SECTION:
ns10.dnsmadeeasy.com.   84449   IN      A       208.94.148.4
ns11.dnsmadeeasy.com.   84449   IN      A       208.80.124.4
ns12.dnsmadeeasy.com.   84449   IN      A       208.80.126.4
ns13.dnsmadeeasy.com.   84449   IN      A       208.80.125.4
ns14.dnsmadeeasy.com.   84449   IN      A       208.80.127.4
ns15.dnsmadeeasy.com.   84449   IN      A       208.94.149.4

;; Query time: 75 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Oct 30 11:09:55 2012
;; MSG SIZE  rcvd: 266

然后:

dig code.jquery.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.5 <<>> code.jquery.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12717
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;code.jquery.com.               IN      A

;; ANSWER SECTION:
code.jquery.com.        43118   IN      CNAME   wac.1257.edgecastcdn.net.
wac.1257.edgecastcdn.net. 3518  IN      CNAME   ne.wac.edgecastcdn.net.
ne.wac.edgecastcdn.net. 3518    IN      A       93.184.220.20

;; Query time: 80 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Oct 30 11:10:45 2012
;; MSG SIZE  rcvd: 108

然后:

    dig jquery.com @localhost

    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.5 <<>> jquery.com @localhost
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10420
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 6

    ;; QUESTION SECTION:
    ;jquery.com.                    IN      A

    ;; ANSWER SECTION:
    jquery.com.             3501    IN      A       70.32.120.34

    ;; AUTHORITY SECTION:
    jquery.com.             168884  IN      NS      ns12.dnsmadeeasy.com.
    jquery.com.             168884  IN      NS      ns10.dnsmadeeasy.com.
    jquery.com.             168884  IN      NS      ns14.dnsmadeeasy.com.
    jquery.com.             168884  IN      NS      ns13.dnsmadeeasy.com.
    jquery.com.             168884  IN      NS      ns15.dnsmadeeasy.com.
    jquery.com.             168884  IN      NS      ns11.dnsmadeeasy.com.

    ;; ADDITIONAL SECTION:
    ns10.dnsmadeeasy.com.   84350   IN      A       208.94.148.4
    ns11.dnsmadeeasy.com.   84350   IN      A       208.80.124.4
    ns12.dnsmadeeasy.com.   84350   IN      A       208.80.126.4
    ns13.dnsmadeeasy.com.   84350   IN      A       208.80.125.4
    ns14.dnsmadeeasy.com.   84350   IN      A       208.80.127.4
    ns15.dnsmadeeasy.com.   84350   IN      A       208.94.149.4

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Tue Oct 30 11:11:34 2012
    ;; MSG SIZE  rcvd: 266

这是让我困惑的地方:

    dig code.jquery.com @localhost

    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.5 <<>> code.jquery.com @localhost
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached

答案1

由于某种原因,您的本地绑定无法到达 edgecastcdn.net。虽然谷歌联系他们。尝试dig @localhost edgecastcdn.net一下dig @ns1.edgecastcdn.net edgecastcdn.net- 您可能会收到相同的超时消息。

这可能是他们的配置错误问题,或者是 edgecastcdn.net 上某些 DDOS 攻击的副作用,或者类似的东西。

相关内容