使用hetzner DNS在cloudcontrol.com上托管域名

时间:2013-09-15 12:48:18

标签: dns alias root robot

我真的非常(非常)努力,但我似乎是愚蠢的。 当我查看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那里得到了傻逼的雏菊。当我访问时: appname.de 我也得到了傻瓜雏菊。当我访问 www.appname.de 我得到无法解析主机名。

我不知道什么是错的:/

1 个答案:

答案 0 :(得分: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系统传播,以便我们的系统可以接收它们。然后将自动验证别名,域将开始工作。