将子域和root / www指向不同的Heroku应用程序

时间:2014-11-06 00:39:38

标签: node.js heroku dns dnsimple

我一直在尝试使用相同的域为几个应用设置DNS。

我希望www.playfade.com和playfade.com重定向到playfade.herokuapp.com,因此分别设置一个CNAME和ALIAS指向Heroku应用程序。这很好。

我也希望beta.playfade.com指向soundedout.herokuapp.com。为此,我为beta.playfade.com设置了一个CNAME到soundedout.herokuapp.com。但是,这不起作用。当我访问beta.playfade.com时,我被重定向到www.playfade.com。

我使用MXToolbox来检查beta.playfade.com并给出了一些错误:

	Bad Glue Detected
Parent server gave glue for beta.playfade.com to be soundedout.herokuapp.com but we resolve that hostname to 176.34.187.173	

	At least one name server failed to respond in a timely manner
Failure detail: 176.34.187.173	 

	Local NS list does not match Parent NS list
50.31.242.53 was reported by the parent, but not locally
198.241.11.53 was reported by the parent, but not locally
198.241.10.53 was reported by the parent, but not locally
50.31.243.53 was reported by the parent, but not locally
176.34.187.173 was reported locally, but not by the parent	 

	Serial numbers do not match	

我也在heroku仪表板中正确设置了域名。

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:0)

➜  ~  dig beta.playfade.com

; <<>> DiG 9.8.3-P1 <<>> beta.playfade.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 64369
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;beta.playfade.com.     IN  A

;; AUTHORITY SECTION:
playfade.com.       296 IN  SOA ns1.dnsimple.com. admin.dnsimple.com. 2014110501 86400 7200 604800 300

;; Query time: 668 msec
;; SERVER: 85.37.17.16#53(85.37.17.16)
;; WHEN: Thu Nov  6 10:29:27 2014
;; MSG SIZE  rcvd: 90

没有为主机名beta.playfade.com配置CNAME。确保正确配置它,并确保您在应用程序内没有重定向配置(或者如果您有,请相应地调整它)。

相关问题