AWS R53未解析名称

时间:2015-12-15 05:20:32

标签: heroku dns amazon-route53

我正在开发一个网站,我遇到了AWS Rout 53的问题

最初我使用的是数字海洋,所以我将A记录设置为服务器的IP并更新了我的注册商名称服务器(godaddy)。 一切都很好。

现在我在heroku上托管,但它没有解析名称。

如果我访问teamcomp.net,我会正确地重定向到www.teamcomp.net,因此我认为S3存储桶配置正确。

但在此之后,Firefox无法在www.teamcomp.net找到服务器。

Server not found

Check the address for typing errors such as ww.example.com instead of www.example.com
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

我按照https://devcenter.heroku.com/articles/route-53处的说明操作,将域名添加到heroku应用程序中,并正确设置了注册商的名称服务器。

$ heroku domains
=== mysterious-reef-3637 Heroku Domain
mysterious-reef-3637.herokuapp.com

=== mysterious-reef-3637 Custom Domains
Domain Name       DNS Target                        
────────────────  ──────────────────────────────────
www.teamcomp.net  mysterious-reef-3637.herokuapp.com
teamcomp.net      mysterious-reef-3637.herokuapp.com

这是我目前的配置。它看起来像我正在做的一切像​​指南说的那样,但我无法从该域访问该网站(如果我使用heroku域,它可以工作)

r53 configuration

$ host teamcomp.net
Host teamcomp.net not found: 2(SERVFAIL)

我该怎么做才能解决它?

其他信息

$ dig +recurse +trace teamcomp.net any

; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> +recurse +trace teamcomp.net any
;; global options: +cmd
.           304830  IN  NS  g.root-servers.net.
.           304830  IN  NS  h.root-servers.net.
.           304830  IN  NS  i.root-servers.net.
.           304830  IN  NS  j.root-servers.net.
.           304830  IN  NS  k.root-servers.net.
.           304830  IN  NS  l.root-servers.net.
.           304830  IN  NS  m.root-servers.net.
.           304830  IN  NS  a.root-servers.net.
.           304830  IN  NS  b.root-servers.net.
.           304830  IN  NS  c.root-servers.net.
.           304830  IN  NS  d.root-servers.net.
.           304830  IN  NS  e.root-servers.net.
.           304830  IN  NS  f.root-servers.net.
;; Received 755 bytes from 127.0.1.1#53(127.0.1.1) in 3393 ms

net.            172800  IN  NS  f.gtld-servers.net.
net.            172800  IN  NS  a.gtld-servers.net.
net.            172800  IN  NS  b.gtld-servers.net.
net.            172800  IN  NS  c.gtld-servers.net.
net.            172800  IN  NS  l.gtld-servers.net.
net.            172800  IN  NS  h.gtld-servers.net.
net.            172800  IN  NS  g.gtld-servers.net.
net.            172800  IN  NS  j.gtld-servers.net.
net.            172800  IN  NS  i.gtld-servers.net.
net.            172800  IN  NS  k.gtld-servers.net.
net.            172800  IN  NS  d.gtld-servers.net.
net.            172800  IN  NS  e.gtld-servers.net.
net.            172800  IN  NS  m.gtld-servers.net.
net.            86400   IN  DS  35886 8 2 7862B27F5F516EBE19680444D4CE5E762981931842C465F00236401D 8BD973EE
net.            86400   IN  RRSIG   DS 8 1 86400 20151224170000 20151214160000 62530 . Kmd1EaxlpKS2T8PZIV/HWmZe8glRgOKjgtjfuvx4D4YDPGRnyOxWXVql 4Y8srSFmvDPDR382hMQWLaOwjnVCO4dMWPnRIoYvzqo05a2/7EOJDXlV 6WczFZKy+9M7oUj4XeeHrpi04ypUj/gXvnCMNKk3/5QJl4T8MovWEHeu hXw=
;; Received 733 bytes from 192.228.79.201#53(b.root-servers.net) in 7182 ms

teamcomp.net.       172800  IN  NS  ns-1351.awsdns-40.org.
teamcomp.net.       172800  IN  NS  ns-2043.awsdns-63.co.uk.
teamcomp.net.       172800  IN  NS  ns-210.awsdns-26.com.
teamcomp.net.       172800  IN  NS  ns-526.awsdns-01.net.
A1RT98BS5QGC9NFI51S9HCI47ULJG6JH.net. 86400 IN NSEC3 1 1 0 - A1RUUFFJKCT2Q54P78F8EJGJ8JBK7I8B NS SOA RRSIG DNSKEY NSEC3PARAM
A1RT98BS5QGC9NFI51S9HCI47ULJG6JH.net. 86400 IN RRSIG NSEC3 8 2 86400 20151218061702 20151211050702 37703 net. QEvwTsJgNbCEgO6sLxxz09CG5Ugs4hPXoRo+8W5o4Xn5nrkdN7lw0rNI DFS/C6dJtShsOkX2/0EIpp8DaGAvjgTs6jLu+oZzgTaedKHSk0cQUPVf EcGNbbpp8FCHz0yUMBes9FPg8WAe+DXNZ++lCjtK5aO89EEWJqNEOjfP vmA=
UC4NBKDSCVJ8ARDU0BVH1BBDDQ15GR8I.net. 86400 IN NSEC3 1 1 0 - UC518K8QR415HBJULMN8MLAPPT20CKR1 NS DS RRSIG
UC4NBKDSCVJ8ARDU0BVH1BBDDQ15GR8I.net. 86400 IN RRSIG NSEC3 8 2 86400 20151220062946 20151213051946 37703 net. Re7MIW4RzyQdlEfoIM1TrQIq8mG5VvLlGvDfba+NeUAbnKNZMmW+WCYr n3Jktc9xVXJoecBZg+CSTG03CWqG8GkA8RiQQjAVKF1dcWRph6mGLglM crgzBFvK4H+uo6WJDkOowm7jA736J/9/FWJ1GoBXMoFMvz/HmPiujpRR Hgs=
;; Received 695 bytes from 192.43.172.30#53(i.gtld-servers.net) in 548 ms

teamcomp.net.       5   IN  A   54.231.131.76
teamcomp.net.       172800  IN  NS  ns-1351.awsdns-40.org.
teamcomp.net.       172800  IN  NS  ns-2043.awsdns-63.co.uk.
teamcomp.net.       172800  IN  NS  ns-210.awsdns-26.com.
teamcomp.net.       172800  IN  NS  ns-526.awsdns-01.net.
teamcomp.net.       900 IN  SOA ns-210.awsdns-26.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
;; Received 255 bytes from 205.251.194.14#53(ns-526.awsdns-01.net) in 494 ms

1 个答案:

答案 0 :(得分:1)

所以看起来错误地设置了大学DNS解析器。切换到任何其他公共DNS解析器应该可以解决问题:http://www.circleid.com/posts/20110407_top_public_dns_resolvers_compared/

以下是有关如何在Windows 10和OS X上更改一个DNS服务器的一些教程:

希望它有所帮助!