AAD Domain Services - Custom DNS records keep disappearing

Magnus Tjerneld 26 Reputation points

We are running Azure AD Domain Services (AADDS) to manage a few legacy application servers as part of our Azure infrastructure. In order for VNET-integrated Web Apps to find internal API:s using the VNET integration we've added a few custom Forward Lookup Zones for these specific hosts in the AADDS DNS. At seemingly random times (maybe once a week), the A-records in these zones are deleted in the DNS server, although the zones remain.

Can anyone help me explain wht this happens and how we can prevent it? Azure Web Apps does not contain a hosts-file, so we are dependent on DNS for lookups.

Thanks in advance,


Azure Active Directory Domain Services
No comments
{count} votes

Accepted answer
  1. Sam Cogan 7,712 Reputation points MVP

    AAD DS does not support adding additional zones, only creating records in the single AAD DS zone, as documented here

    An Azure AD DS DNS zone should only contain the zone and records for the managed domain itself. Don't create additional zones in the managed domain to resolve named resources in other DNS namespaces. Instead, use conditional forwarders in the managed domain to tell the DNS server where to go in order to resolve addresses for those resources.

1 additional answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 55,431 Reputation points

    Hi @Magnus Tjerneld · Thank you for reaching out. In order to prevent it from happening, it is important to identify the cause. You can enable auditing for DNS and check security audit logs to identify the cause. Here are the steps to enable auditing for DNS record deletion:

    i. Enable Directory Service Access auditing on DNS Server:
    Auditpol /set /category:“DS Access” /Success:Enable
    Auditpol /set /category:“DS Access” /Failure:Enable
    ii. Open ADSIEdit on the DC that has the DNS role. (Start, Run, type adsiedit.msc, and press ENTER).
    iii. Right-click ADSI Edit, click ‘Connect to.’
    iv. On the Connection Settings window that comes up, select the ‘Select or type a Distinguished Name or Naming Context:’ under Connection Point.
    v. Depending on your Domain name and the partition where the zone is stored, type the Distinguished Name for the partition and click OK:

    • If the zone is stored in default Domain partition, then I will use DC=contoso,DC=com as the Distinguished Name. (This partition is generally loaded in Adsiedit by default).
    • If the zone is stored in DomainDNSZones partition, then I will use DC=DomainDNSZones,DC=contoso,DC=com as the Distinguished Name.
    • If the zone is stored in ForestDNSZones partition, then I will use DC=ForestDNSZones,DC=contoso,DC=com as the Distinguished Name. 42603-image.png

    vi. Navigate to the location of the DNS zone object according to where the zone is stored:
    vii. If the zone is stored in default Domain partition then:

    1. Expand Domain [(dc name).contoso.com] > DC=contoso,DC=com > CN=System > CN=MicrosoftDNS
    2. If the zone is stored in DomainDNSZones partition then:
    3. Expand Domain [(dc name).contoso.com] > DC=DomainDNSZones,DC=contoso,DC=com > CN=MicrosoftDNS
    4. If the zone is stored in ForestDNSZones partition then:
    5. Expand Domain [(dc name).contoso.com] > DC=ForestDNSZones,DC=contoso,DC=com > CN=MicrosoftDNS
    6. (Please note that in the case of a ForestDNSZones partition, the DN path will always refer to the forest root domain DN path)

    viii. Under CN=MicrosoftDNS you will find DC=<your zone name> (DC=contoso.com in my case). Right click on that and select Properties.
    ix. On the Security tab, click the Advanced button.
    x. Select the Auditing tab, and click Add.
    xi. Under User or Group, type ‘Everyone’ and click on Check Names button. Click OK.
    (You may find some already existing entries with the name ‘Everyone’ under the Auditing tab. This may be confusing but please add a new entry as mentioned above.)
    xii. On the Auditing Entry window that pops up, under the Object tab, select Success and Failure for access types Write All Properties, Create, Delete, and Delete Subtree and click Ok.

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