configure DNS

Arvin A 0 Reputation points
2025-06-24T01:22:32.82+00:00

We have a DNS Zone with the URL https://xxxxx point to the website in US resource group(give the Website URL).

Now we need to point the URL to a diffrent website that is https://xxxxxxxx.azurewebsites.net/

And create another DNS zone URL name https://xxxxx point to the website https://xxxxxx.azurewebsites.net/

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
{count} votes

1 answer

Sort by: Most helpful
  1. G Sree Vidya 4,080 Reputation points Microsoft External Staff Moderator
    2025-07-15T21:46:31.03+00:00

    Hello Arvin A

    If you need to update your current DNS zone, which points to a specific website, to direct traffic to a new Azure website, you generally need to modify either the A record or CNAME record, depending on your DNS provider.

    1.This typically involves updating the DNS records in the Azure DNS zone to map the custom domain to the new App Service.

    Currently, you have a DNS zone with a custom domain like https://xxxxx pointing to a website in a US resource group. To point this DNS record to a new Azure Web App:

    New target website: https://xxxxxxxx.azurewebsites.net/

    Steps:

    • Access your DNS zone in Azure.
    • Find the existing A record or CNAME record for xxxxx.
    • Update the record to direct to xxxxxxxx.azurewebsites.net.
    • For CNAME, set the alias to xxxxxxxx.azurewebsites.net.
    • For A record, use the IP address of the new web app (though this is less common for Azure Web Apps).

    For more details: https://learn.microsoft.com/en-us/azure/dns/dns-getstarted-portal

    2.You also want to create a new DNS zone with the same custom domain https://xxxxx (or possibly a subdomain?) and point it to a different Azure Web App:

    New DNS zone domain: https://xxxxx

    Target website: https://xxxxxx.azurewebsites.net/

    However, you cannot have two DNS zones with the exact same domain name in the same Azure subscription. So here are two options:

    Option A: Use a Subdomain

    Create a new DNS zone.

    Option B: Use Path-Based Routing (if using Azure Front Door or Application Gateway)

    3.Record Verification: After making changes, it may take some time for DNS propagation. You can verify by using commands like nslookup or dig to check if your URLs are now pointing to the new addresses.


    I hope this helps! If these answers your query, do click the "Upvote" and click "Accept the answer" of which might be beneficial to other community members reading this thread.

    If the above is unclear or you are unsure about something, please add a comment below.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.