2014-11-06 91 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

相關問題