我已经非常非常(非常)努力地尝试过,但我似乎很愚蠢。当我查看 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
我得到无法解析主机名。
我不太清楚出了什么问题:/