Removing zone delegation also removes the name server A and PTR Records

Mishaua 721 Reputation points
2022-12-15T23:23:24.08+00:00

It seems that if you delete a delegated zone with the powershell command Remove-DnsServerZoneDelegation, it also removes the A and PTR record for the NS records defined in that zone. Is this expected? I had a misconfigured delegated zone from previous technical debt had the name servers of the current dns servers. When I removed it it also removed the A and PTR records of the dns servers. They re-added themselves via the standard nic dns registration after a short while but I am curious why that happened. This suggested posting https://social.msdn.microsoft.com/Forums/en-US/fe075bf3-69f8-4dcd-aa28-d0638536111b/remove-name-server-from-a-delegated-zone-without-removing-the-a-record-for-the-name-server?forum=winserverNIS seems to suggest that this is how the command works?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,573 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,044 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,561 Reputation points
    2022-12-16T17:17:20.017+00:00

    Hello there,

    If you specify a DNS server for the child in this cmdlet, the cmdlet removes that server from the delegation. If you remove the last DNS server, or if you do not specify a DNS server, the cmdlet removes the delegation from the zone, after confirmation.

    Depending on the configuration, you may or may not be able to delete or schedule the deletion of a zone and all its contents.

    You can find more info regarding this command here https://learn.microsoft.com/en-us/powershell/module/dnsserver/remove-dnsserverzonedelegation?view=windowsserver2022-ps

    ------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    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.