2014-11-06 101 views
0

我一直在尝试为使用相同域的几个应用程序设置DNS。将子域和root/www指向不同的Heroku应用程序

我希望www.playfade.com和playfade.com重定向到playfade.herokuapp.com,因此请分别设置CNAME和ALIAS以指向Heroku应用程序。这工作正常。

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

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

\t 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 \t 
 

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

 
\t 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 \t 
 

 
\t Serial numbers do not match \t

我在Heroku的仪表盘设置正确的领域也是如此。

任何帮助,将不胜感激。

回答

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。确保正确配置它,并确保你在应用程序内没有重定向配置(或者如果你有它,相应地调整它)。

+0

我删除了测试版CNAME,而是为“加入”添加了一个。现在工作正常,beta子域仍然重定向到www。假设现在它不是问题,但很奇怪它仍然在那里重定向。 – 2014-11-06 16:57:56

相关问题