【发布时间】:2020-07-29 14:00:07
【问题描述】:
我继承了一个带有运行 Web 服务器的 CentOS 的 Azure VM。我可以通过使用端口 8080(我们称之为 12.34.567.890:8080)的 IP 地址来访问它。
我在 GoDaddy 注册了域 example.app。现在我需要将它们连接起来。我意识到我需要设置 DNS 记录,但我不确定是通过将 GoDaddy 上的名称服务器更改为 Azure 的名称服务器,然后在 Azure 上设置 DNS 区域,还是将名称服务器保留在GoDaddy 并在那里设置 DNS 区域以指向 Azure(后者是它当前的设置方式)。我已经尝试了一些东西,但到目前为止没有任何乐趣。
目前似乎两者兼而有之(其他人在我之前从事此工作,我不确定这两种情况的默认设置是什么)。
所以,在 GoDaddy,我们有:
Using Default name servers:
ns77.domaincontrol.com
ns78.domaincontrol.com
A records:
@ 12.34.567.890 (the IP of the Azure server)
* 12.34.567.890
CNAME:
www @
NS:
@ ns77.domaincontrol.com
@ ns78.domaincontrol.com
SOA:
@ Primary nameserver: ns77.domaincontrol.com
我可以编辑 A 和 CNAME 记录,但不能编辑 NS 或 SOA 记录。
在 Azure(在 DNS 区域中)我有:
Resource group: www.example.app
Name Server 1: ns1-04.azure-dns.com
Name Server 2: ns2-04.azure-dns.net
Name Server 3: ns3-04.azure-dns.org
Name Server 4: ns4-04.azure-dns.info
Name Type TTL Value Alias resource type Alias target
@ A 3600 - Public IP Address example-prod-ip
@ NS 172800 ns1-04.azure-dns.com.
ns2-04.azure-dns.net.
ns3-04.azure-dns.org.
ns4-04.azure-dns.info.
@ SOA 3600 Email: azuredns-hostmaster.microsoft.com
Host: ns1-04.azure-dns.com.
Refresh: 3600
Retry: 300
Expire: 2419200
Minimum TTL: 300
Serial number: 1
我必须再次选择编辑或删除 A 记录,而不是其他记录。
如果我尝试通过浏览器访问域,我会得到以下信息:
Using 12.34.567.890:8080 - works fine
Using 12.34.567.890 - "Safari can't open the page because the server isn't responding"
Using example.app or www.example.app or http://www.example.app - "Safari can't open the page because Safari can't establish a secure connection to the server"
我不知道只是“example.app”的域是否也有所作为。接下来我可以尝试什么?
【问题讨论】:
标签: azure dns cname nameservers a-records