AWS R53 未解析名称

AWS R53 not resolving name

我正在开发一个网站,但我遇到了 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 域,它就可以工作)

$ 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

看来大学 DNS 解析器设置不正确。切换到任何其他 public DNS 解析器应该可以解决问题:http://www.circleid.com/posts/20110407_top_public_dns_resolvers_compared/.

这里有一些关于如何在 Windows 10 和 OS X:

上更改 DNS 服务器的教程

希望对您有所帮助!