3

我已经从 123-reg.co.uk 为 yorkshireimagescanning.co.uk 配置了我的 dns,如下所示:

awverify CNAME awverify.yis.azure www CNAME yis.azurewebsites.net @ A 65.52.128.33

如果我执行“nslookup yorkshireimagescanning.co.uk”,那么它会解析为正确的 IP 地址(65.52.128.33)

Azure 门户似乎接受 CNAME 已正确配置,因为它允许我为裸域名“yorkshireimagescanning.co.uk”创建条目,如以下屏幕截图所示。

在此处输入图像描述

我的问题是,如果我将浏览器定向到裸域“yorkshireimagescanning.co.uk”,那么我会得到一个 404。如果我以 www 为前缀,那么它可以正常工作。谁能解释为什么我的 A 记录不起作用?

4

1 回答 1

2

当我在 yorkshireimagescanning.co.uk 上进行 NS 查询时

C:\>nslookup
> set querytype=soa
> yorkshireimagescanning.co.uk
Server:  utdc.xxxxxx.com
Address:  172.16.1.2

Non-authoritative answer:
yorkshireimagescanning.co.uk
        primary name server = ns.123-reg.co.uk
        responsible mail addr = hostmaster.yorkshireimagescanning.co.uk
        serial  = 2013062302
        refresh = 86400 (1 day)
        retry   = 0 (0 secs)
        expire  = 604800 (7 days)
        default TTL = 86400 (1 day)

ns.123-reg.co.uk        internet address = 212.67.202.2

然后访问 www.yorkshireimagescanning.co.uk:

C:\>nslookup
Default Server:  utdc.xxxxxx.com
Address:  172.16.1.2

> www.yorkshireimagescanning.co.uk
Server:  utdc.xxxxxx.com
Address:  172.16.1.2

Non-authoritative answer:
Name:    waws-prod-am2-001.cloudapp.net
Address:  65.52.128.33
Aliases:  www.yorkshireimagescanning.co.uk
          yis.azurewebsites.net
          waws-prod-am2-001.vip.azurewebsites.windows.net

> set querytype=soa
> www.yorkshireimagescanning.co.uk
Server:  utdc.xxxxxx.com
Address:  172.16.1.2

Non-authoritative answer:
www.yorkshireimagescanning.co.uk        canonical name = yis.azurewebsites.net
yis.azurewebsites.net   canonical name = waws-prod-am2-001.vip.azurewebsites.windows.net
waws-prod-am2-001.vip.azurewebsites.windows.net canonical name = waws-prod-am2-001.cloudapp.net
>

这似乎表明这两个站点的设置不同。WWW 通过 azure 设置为别名 (cname),其中另一个似乎是通过 123-reg 的 A 记录。

尽管如此,他们都通过相同的IP地址。我假设您没有在您的应用程序中做任何事情来限制域名?

在所有域中:

yorkshireimagescanning.co.uk - Fails 404
www.yorkshireimagescanning.co.uk - Works
yis.azurewebsites.net - Works
waws-prod-am2-001.vip.azurewebsites.windows.net - Fails 404
waws-prod-am2-001.cloudapp.net - Fails 404
65.52.128.33 - Fails 404

都指向同一个IP地址。

症结似乎在于制作 yorkshireimagescanning.co.uk 的别名以及 www。您需要一个指向 yis.azurewebsites.net 的 CNAME 参考。

于 2013-08-15T17:21:26.703 回答