Azure Private DNS Zone get automatically deleted

Apurva Pathak 360 Reputation points
2023-09-05T07:49:13.5+00:00

Hi all,

We've deployed a centralized Azure Private DNS Zone in our environment to get the IPs of Private Endpoints (mostly) resolved (we use on Prem DNS servers for all other resources such as VMs etc.) and are slowly moving all our Private Endpoints DNS Zones from the local to the centralized one. But we have noticed a bizarre behavior in some cases where in, if we are changing our DNS zone integration of private endpoints from local to that subscription to the centralized one, the entries in the local private zones get automatically deleted by 'Azure Traffic Manager and DNS' initiator (pasting a snip below).

User's image

Could you please help me understand, if this is an expected behavior, if yes, why. Is it possible to change this behavior. Any reference link would be highly appreciated.

Thanks in advance!

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

Accepted answer
  1. KapilAnanth-MSFT 39,461 Reputation points Microsoft Employee
    2023-09-06T13:11:45.6766667+00:00

    @Apurva Pathak

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

    I understand that the Private DNS Zones, when unlinked from a Private EndPoint , automatically removes the record in the Private DNS Zone.

    Let's call the local subscription as "LocalDNSZone" and centralized one as "CentralDNSZone".

    I believe this is an expected behavior, and currently we cannot over ride this.

    I checked internally and the recommendation was to use the "CentralDNSZone" across every VNET as Private DNS Zone is a highly available resource and is not tied to any region.

    For some management reason, if you want to keep the record intact,

    • You must manually add the record to the "LocalDNSZone"
    • Additionally, you can add this Private DNS Zone to the default Private DNS Group and keep it handy.
    • However, only the first DNS Zone in a Zone group will have the records automatically updated. (CentralDNSZone)
    • In case you remove the "CentralDNSZone" from the DNS Zone Group, the next DNS Zone, "LocalDNSZone" will automatically get updated with the PE's IP and A records.

    Currently, we must rely on CLI to update these DNS Zone groups.

    Reference : https://video2.skills-academy.com/en-us/cli/azure/network/private-endpoint/dns-zone-group?view=azure-cli-latest

    To address your query, "Is it not possible to change 'DNS Zone group' from portal while adding the new zone?"

    • Please note that a PE can have only one DNS Zone group at an instant.
    • You cannot add a second one.
    • User's image
    • If you'd like to change this DNS Zone Group's name, you must delete this and recreate this with the custom name.

    Please let us know if we can be of any further assistance here.

    Thanks,

    Kapil


    Please Accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.

    0 comments No comments

0 additional answers

Sort by: Most helpful