0

我已经非常非常(非常)努力地尝试过,但我似乎很愚蠢。当我查看 cloudcontrol.com Web 界面时,我有以下别名。最后两个确实显示“0”,如未验证/接受。

production-appname.cloudcontrolapp.com
production-appname.cloudcontrolled.com
production.appname.cloudcontrolapp.com
production.appname.cloudcontrolled.com
appname.de
www.appname.de

这是我的 hetzner DNS 文件:

$TTL 86400
@   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2923281543   ; serial
    14400        ; refresh
    1800         ; retry
    604800       ; expire
    86400 )      ; minimum

@                        IN NS      robotns3.second-ns.com.
@                        IN NS      robotns2.second-ns.de.
@                        IN NS      ns1.first-ns.de.

@                        IN A       54.217.238.6
@                        IN A       54.217.235.238
@                        IN A       54.217.237.244
localhost                IN A       127.0.0.1
mail                     IN A       54.217.238.6
ftp                      IN CNAME   www
imap                     IN CNAME   www
loopback                 IN CNAME   localhost
pop                      IN CNAME   www
relay                    IN CNAME   www
smtp                     IN CNAME   www
www                      IN CNAME   production-appname.cloudcontrolapp.com.
@                        IN MX 10   mail
@                        IN TXT     "cloudControl-verification: ..code.."

在我的本地笔记本电脑 /etc/resolv.conf 中使用 213.239.242.238 (ns1.first-ns.de) 作为第一行,我得到:

user@machine:~$ dig @ns1.first-ns.de appname.de ALL

; <<>> DiG 9.8.1-P1 <<>> @ns1.first-ns.de appname.de ALL
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19203
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;appname.de.            IN  A

;; ANSWER SECTION:
appname.de.     86400   IN  A   54.217.238.6
appname.de.     86400   IN  A   54.217.237.244
appname.de.     86400   IN  A   54.217.235.238

;; AUTHORITY SECTION:
appname.de.     86400   IN  NS  robotns3.second-ns.com.
appname.de.     86400   IN  NS  robotns2.second-ns.de.
appname.de.     86400   IN  NS  ns1.first-ns.de.

;; ADDITIONAL SECTION:
ns1.first-ns.de.    86400   IN  A   213.239.242.238

;; Query time: 65 msec
;; SERVER: 213.239.242.238#53(213.239.242.238)
;; WHEN: Sun Sep 15 14:34:56 2013
;; MSG SIZE  rcvd: 190

;; connection timed out; no servers could be reached
user@machine:~$ dig @ns1.first-ns.de appname.de TXT

; <<>> DiG 9.8.1-P1 <<>> @ns1.first-ns.de appname.de TXT
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3291
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;appname.de.            IN  TXT

;; ANSWER SECTION:
appname.de.     86400   IN  TXT "cloudControl-verification: ..correct code i've checked.."

;; AUTHORITY SECTION:
appname.de.     86400   IN  NS  robotns3.second-ns.com.
appname.de.     86400   IN  NS  robotns2.second-ns.de.
appname.de.     86400   IN  NS  ns1.first-ns.de.

;; ADDITIONAL SECTION:
ns1.first-ns.de.    86400   IN  A   213.239.242.238

;; Query time: 66 msec
;; SERVER: 213.239.242.238#53(213.239.242.238)
;; WHEN: Sun Sep 15 14:35:39 2013
;; MSG SIZE  rcvd: 246

user@machine:~$ dig @ns1.first-ns.de www.appname.de ALL

; <<>> DiG 9.8.1-P1 <<>> @ns1.first-ns.de www.appname.de ALL
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64185
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.appname.de.        IN  A

;; ANSWER SECTION:
www.appname.de. 86400   IN  CNAME   production-appname.cloudcontrolapp.com.

;; AUTHORITY SECTION:
appname.de.     86400   IN  NS  robotns3.second-ns.com.
appname.de.     86400   IN  NS  robotns2.second-ns.de.
appname.de.     86400   IN  NS  ns1.first-ns.de.

;; ADDITIONAL SECTION:
ns1.first-ns.de.    86400   IN  A   213.239.242.238

;; Query time: 66 msec
;; SERVER: 213.239.242.238#53(213.239.242.238)
;; WHEN: Sun Sep 15 14:35:53 2013
;; MSG SIZE  rcvd: 206

;; connection timed out; no servers could be reached

现在,当我刚刚访问该站点时: production-appname.cloudcontrolapp.com 一切正常,我看到了该应用程序。当我访问时: production-appname.cloudcontrolapp.com. (with the dot!) 我从 cloudcontrol 得到了 whoopsy daisy 的东西。当我访问时: appname.de 我也得到了百日菊。当我访问时, www.appname.de 我得到无法解析主机名。

我不太清楚出了什么问题:/

4

1 回答 1

1

好的,所以根据此配置的第一个 appname.de 根本不指向 cloudControl。www CNAME 似乎是正确的。TXT 记录似乎也是正确的,但在不知道域名的情况下我无法验证。

您要检查的是:

a) 对根域的 TXT 记录的查询返回什么 (例如$dig TXT appname.de)
b) www.appname.de 解析到什么 (例如$dig www.appname.de)?

如果 a) 返回正确的验证码(旁注:这不是秘密)和 b) 正确的 CNAME,您所要做的就是等待更改通过 DNS 系统传播,以便我们的系统可以获取它们。然后将自动验证别名,并且域将开始工作。

于 2013-09-16T12:03:16.700 回答