Apache-2.2

伺服器響應非 www 但不響應 www。DNS問題?

  • September 29, 2014

全球資訊網。網站的版本沒有被路由。非 www 版本正確提供。

我的註冊商在 FastHosts,我想使用 Rackspace for Email 從 1and1 遷移到 DigitalOcean 的 Web 伺服器。

我昨天在 FastHosts 控制面板中設置了以下名稱伺服器:

NS1.DIGITALOCEAN.COM
NS2.DIGITALOCEAN.COM
NS3.DIGITALOCEAN.COM

我在 DigitalOcean 中顯示設置的區域文件如下:

$TTL    1800
@       IN  SOA NS1.DIGITALOCEAN.COM.   hostmaster.xxxxx.co.uk. (
           1411945141 ; last update: 2014-09-28 22:59:01 UTC
           3600 ; refresh
           900 ; retry
           1209600 ; expire
           1800 ; ttl
           )
            IN      NS      NS1.DIGITALOCEAN.COM.
                    NS      NS2.DIGITALOCEAN.COM.
                    NS      NS3.DIGITALOCEAN.COM.
           MX 0        mx1.emailsrvr.com.
           MX 10   mx2.emailsrvr.com.
@   IN A    178.62.xx.xxx
www CNAME   @

帶有 www 的 dig 命令:

; <<>> DiG 9.8.3-P1 <<>> -t NS www.xxxxx.co.uk @ns1.digitalocean.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 146
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.xxxxx.co.uk.       IN  NS

;; AUTHORITY SECTION:
xxxxx.co.uk.    1800    IN  SOA NS1.DIGITALOCEAN.COM. hostmaster.xxxxx.co.uk. 1411908865 3600 900 1209600 1800

;; Query time: 171 msec
;; SERVER: 173.245.xx.xx#53(xxxx.xxxx.xxxx.xxxx)
;; WHEN: Mon Sep 29 00:12:07 2014
;; MSG SIZE  rcvd: 105

沒有 www 的 dig 命令

; <<>> DiG 9.8.3-P1 <<>> -t NS xxxxx.co.uk @ns1.digitalocean.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4963
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;xxxxx.co.uk.       IN  NS

;; ANSWER SECTION:
xxxxx.co.uk.    1800    IN  NS  NS1.DIGITALOCEAN.COM.
xxxxx.co.uk.    1800    IN  NS  NS3.DIGITALOCEAN.COM.
xxxxx.co.uk.    1800    IN  NS  NS2.DIGITALOCEAN.COM.

;; Query time: 171 msec
;; SERVER: 173.245xx.xx#53(173.245.xx.xx)
;; WHEN: Mon Sep 29 00:19:09 2014
;; MSG SIZE  rcvd: 104

在此處輸入圖像描述

您的 DNS 和您的網路伺服器都非常好!

請清除瀏覽器記憶體,刷新 dns 解析器記憶體,然後重試。

引用自:https://serverfault.com/questions/631934