我已经从123-reg.co.uk为yorkshireimagescanning.co.uk配置了我的dns如下:
强化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记录不起作用?
答案 0 :(得分: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地址。
症结似乎在于making an alias的yorkshireimagescanning.co.uk以及www。你需要一个指向yis.azurewebsites.net的CNAME参考。