【问题标题】:Azure Custom Domain not resolvingAzure 自定义域无法解析
【发布时间】:2021-07-26 05:55:54
【问题描述】:

我的 Azure 应用程序的 A CNAME 和 TXT 记录似乎正确,但我的域名仍未解析。 错误: 404 未找到网站。

由于下列原因之一,您可能会看到此错误:

Custom domain has not been configured inside Azure. See how to map an existing domain to resolve this.
Client cache is still pointing the domain to old IP address. Clear the cache by running the command ipconfig/flushdns.

这是我的源教程: https://docs.microsoft.com/en-us/azure/dns/dns-web-sites-custom-domain

【问题讨论】:

    标签: azure cname


    【解决方案1】:

    如果您收到该消息,您可能尚未将该域配置为自定义域。

    在 Portal 中,转到 App > Custom Domain 并确保它在那里。

    如果您确实添加了它,则 A 记录可能指向错误的 IP。您可以通过在命令行中运行以下命令来检查它是否与自定义域刀片中的匹配:

    nslookup <your domain>
    

    【讨论】:

    • 谢谢@ardoRic,是的,我在创建 A 记录时使用了自定义域 IP。 23.99.206.151 Server: 68.105.28.11 Address: 68.105.28.11#53 Non-authoritative answer: Name: emissions.watch Address: 23.99.206.151 域下的地址似乎正确。
    • 您介意分享您的网络应用名称吗? azurewebsites.net 域的默认地址?
    • 从我可以看到它配置正确。 Markstest1 的 IP 地址和 emits.watch 匹配。如果您在自定义域中看到了 emits.watch 域,我会尝试将其删除并重新添加。如果它不起作用,请联系 Azure 支持,因为它应该可以工作。我怀疑您的 TLD(手表)可能会导致问题。
    • 您无需从 Azure 购买域,但如果您使用的是应用服务的免费层级,则可能需要将其升级到共享才能在您的应用中使用自定义域。根据the pricing page,免费层不支持自定义域。
    • 我正在使用现收现付,但我会检查它是否共享。
    猜你喜欢
    • 1970-01-01
    • 2013-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多