为什么我的网站本地检索到的名称服务器与在线检索到的名称服务器不同?

为什么我的网站本地检索到的名称服务器与在线检索到的名称服务器不同?

我的网站无法正确解析,因此我通过 PowerShell 中的 nslookup 检查了名称服务器,结果看到了 bodis.com。然后我在线检查,希望我检查的是同一个名称服务器,结果看到了 domaincontrol.com。

为什么会有差异?两次查找不是都检查 1.1.1.1 名称服务器吗?

ipconfig /flushdns在本地机器上做了。

以下是通过 PowerShell 获得的本地结果:

PS C:\Users\[username]> nslookup -d2 -type=NS example.com
------------
SendRequest(), len 38
    HEADER:
        opcode = QUERY, id = 1, rcode = NOERROR
        header flags:  query, want recursion
        questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
        1.1.1.1.in-addr.arpa, type = PTR, class = IN

------------
------------
Got answer (67 bytes):
    HEADER:
        opcode = QUERY, id = 1, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 0,  additional = 0

    QUESTIONS:
        1.1.1.1.in-addr.arpa, type = PTR, class = IN
    ANSWERS:
    ->  1.1.1.1.in-addr.arpa
        type = PTR, class = IN, dlen = 17
        name = one.one.one.one
        ttl = 1237 (20 mins 37 secs)

------------
Server:  one.one.one.one
Address:  1.1.1.1

------------
SendRequest(), len 42
    HEADER:
        opcode = QUERY, id = 2, rcode = NOERROR
        header flags:  query, want recursion
        questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
        example.com, type = NS, class = IN

------------
------------
Got answer (84 bytes):
    HEADER:
        opcode = QUERY, id = 2, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 2,  authority records = 0,  additional = 0

    QUESTIONS:
        example.com, type = NS, class = IN
    ANSWERS:
    ->  example.com
        type = NS, class = IN, dlen = 12
        nameserver = ns1.bodis.com
        ttl = 10800 (3 hours)
    ->  example.com
        type = NS, class = IN, dlen = 6
        nameserver = ns2.bodis.com
        ttl = 10800 (3 hours)

------------
Non-authoritative answer:
example.com
        type = NS, class = IN, dlen = 12
        nameserver = ns1.bodis.com
        ttl = 10800 (3 hours)
example.com
        type = NS, class = IN, dlen = 6
        nameserver = ns2.bodis.com
        ttl = 10800 (3 hours)

以下是在线结果http://www.kloth.net/services/dig.php

...这是从服务器 1.1.1.1 对 example.com 进行挖掘的结果 [dig @1.1.1.1 example.com NS]

 ; <<>> DiG 9 <<>> @1.1.1.1 example.com NS
 ; (1 server found)
 ;; global options: +cmd
 ;; Got answer:
 ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11416
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

 ;; QUESTION SECTION:
 ;example.com.  IN  NS

 ;; ANSWER SECTION:
 example.com. 2793  IN  NS  ns68.domaincontrol.com.
 example.com. 2793  IN  NS  ns67.domaincontrol.com.

 ;; Query time: 5 msec
 ;; SERVER: 1.1.1.1#53(1.1.1.1)
 ;; WHEN: Tue Jan 15 03:11:46 2019
 ;; MSG SIZE  rcvd: 94

答案1

没有“那个” 1.1.1.1 名称服务器。这是一个任播地址,可以路由到互联网上您附近的数十、数百甚至数千个 DNS 服务器中的任何一个(CloudFlare 没有透露他们到底有多少个 DNS 服务器)。

如果你最近更改了名称服务器,你可以请求 1.1.1.1清除缓存为您的域名。

相关内容