我如何将GoDaddy域连接到Azure VM服务器(CENT OS)?

问题描述 投票:0回答:1

我已经通过运行Web服务器的CENT OS继承了Azure VM。我可以通过使用端口8080进入IP地址来访问它(我们将其命名为12.34.567.890:8080)。

我已在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”也有所作为。不知道下一步该怎么做-有人可以帮忙吗?谢谢!

我已经通过运行Web服务器的CENT OS继承了Azure VM。我可以通过使用端口8080进入IP地址(将其称为12.34.567.890:8080)来访问此地址。我有域example.app ...

azure dns cname nameservers a-records
1个回答
0
投票

首先,默认情况下,Web浏览器通过使用HTTP端口80或HTTPS端口443访问Web服务器。如果使用非默认端口8080,则在访问网站时需要添加该端口,例如[C0 ],http://12.34.567.890:8080http://www.example.app:8080

© www.soinside.com 2019 - 2024. All rights reserved.