域名解析服务相关问题 (Domain name resolution service related issues)

xihao tang 0 Reputation points
2023-06-16T09:23:53.46+00:00

我司有香港域名,Azure公有云上有没有服务可以做到我们如下需求
1、发布我司域名,通过互联网访问过来时,国内用户访问过来DNS服务器给国内用户返回我们的国内服务器的IP地址,国外用户访问过来时,DNS服务器给国外用户返回我们香港服务器的IP地址。


Our company has a Hong Kong domain name. Is there any service on the Azure public cloud that can meet our following needs?

  1. Publish our domain name. When a domestic user visits from the Internet, the DNS server returns the IP address of our domestic server to the domestic user. When a foreign user visits, the DNS server returns the IP address of our Hong Kong server to the foreign user.
Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
627 questions
Azure Traffic Manager
Azure Traffic Manager
An Azure service that is used to route incoming network traffic for high performance and availability.
111 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,256 Reputation points Microsoft Employee
    2023-06-19T08:59:46.9366667+00:00

    Hello @xihao tang ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you would like to know if there is an Azure service that can publish your domain name and help in geographical routing as follows: when accessing it through the Internet, domestic users visit the DNS server and return the IP address of your domestic server to domestic users but when a foreign user visits, the DNS server returns the IP address of your Hong Kong server to the foreign user.

    Azure Traffic manager can help meet your requirements. Azure Traffic Manager is a DNS-based traffic load balancer. This service allows you to distribute traffic to your public facing applications across the global Azure regions based on various routing methods, including geographic routing.

    Refer: https://video2.skills-academy.com/en-us/azure/traffic-manager/traffic-manager-overview

    https://video2.skills-academy.com/en-us/azure/traffic-manager/traffic-manager-how-it-works

    https://video2.skills-academy.com/en-us/azure/traffic-manager/traffic-manager-routing-methods#geographic-traffic-routing-method

    https://video2.skills-academy.com/en-us/azure/traffic-manager/traffic-manager-configure-geographic-routing-method

    Here's an overview of the steps you can follow:

    1. Create two child Traffic Manager profiles, one for domestic users and another for foreign users. Associate the appropriate endpoint with each profile, one for your domestic server and another for your Hong Kong server. Each endpoint should have its own IP address or fully qualified domain name (FQDN). Define the Geo-mapping for geographic routing within each profile.
    2. Create a main/parent Traffic Manager profile with geographic routing. This allows you to define different profiles based on user location.
    3. Add the 2 child profiles (created above) as nested endpoints to this parent Traffic Manager profile and define the Geo-mapping.
    4. Update the DNS records in your DNS provider to point to the Traffic Manager DNS name. This ensures that when users query your domain name, the DNS server returns the appropriate IP address based on their geographic location.

    Refer: https://video2.skills-academy.com/en-us/azure/traffic-manager/traffic-manager-faqs#why-is-it-strongly-recommended-that-customers-create-nested-profiles-instead-of-endpoints-under-a-profile-with-geographic-routing-enabled

    https://video2.skills-academy.com/en-us/azure/traffic-manager/traffic-manager-nested-profiles

    https://video2.skills-academy.com/en-us/azure/traffic-manager/traffic-manager-point-internet-domain

    Additional Information:

    If you want to point your root/apex domain to Traffic manager, you can make use of Azure DNS alias records.

    https://video2.skills-academy.com/en-us/azure/dns/tutorial-alias-tm?toc=%2Fazure%2Ftraffic-manager%2Ftoc.json

    But to do this, you should delegate your domain to Azure DNS:

    https://video2.skills-academy.com/en-us/azure/dns/dns-domain-delegation

    https://video2.skills-academy.com/en-us/azure/dns/dns-delegate-domain-azure-dns

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.