I have Azure DNS Zone, here private DNS & public DNS in same zone i need to seperate it what is ideal way to do ?

Shaik Althaf 0 Reputation points
2023-10-06T09:53:48.4666667+00:00

I have Azure DNS Zone, here private DNS & public DNS in same zone i need to seperate it what is ideal way to do

i have an idea in my mind

Step: 1. Create Private DNS Zone and migrate the Existing private DNS to new Private DNS Zone Ex: contos.com to private.contos.com

Step: 2 Use Split Horizon Technique

Step:3 Use separate DNS name like contos.net for private DNS & migrate as required.

or any other suggestions please help me this..

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

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,591 Reputation points Microsoft Employee
    2023-10-06T12:05:19.7+00:00

    Hello @Shaik Althaf ,

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

    I understand that you have an Azure DNS zone with both private DNS & public DNS records, and you would like to know what the ideal way is to separate private DNS & public DNS zones.

    If your requirement is to have the same name for both public and private DNS, then you can go for split-horizon technique.

    Split-horizon DNS support: With Azure DNS, you can create zones with the same name that resolve to different answers from within a virtual network and from the public internet. A typical scenario for split-horizon DNS is to provide a dedicated version of a service for use inside your virtual network.

    Refer: https://video2.skills-academy.com/en-us/azure/dns/private-dns-overview#benefits

    You can have a public DNS zone called contoso.com to register the public IPs of your VMs/resources as DNS records within the zone.

    And then also create a private DNS zone called contoso.com, with the auto-registration feature enabled for your linked Virtual network, so that it can automatically register the VMs as A records into the Private Zone, pointing to their private IPs.

    This way, when an internet client does a DNS query for your VM's DNS, Azure will return the public IP record from the public zone. If the same DNS query is issued from another VM in the same virtual network, Azure will return the Private IP record from the private zone.

    User's image

    Refer: https://video2.skills-academy.com/en-us/azure/dns/private-dns-scenarios#scenario-split-horizon-functionality

    https://video2.skills-academy.com/en-us/azure/dns/private-dns-autoregistration

    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.

    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.