Introduction You may find yourself in a situation where DNS entries will re-appear in the DNS console on a Windows Server after being ...
Introduction
You may find yourself in a situation where DNS entries will re-appear in the DNS console on a Windows Server after being deleted. Chances are these entries are long and in all caps. There was a bug that prevented these from being managed in DNS console after their creation. Fortunately you can use powershell to remove them completely.
Steps (3 total)
For this example we are using the following, replace as needed with your environment.
"servername" the name of the A record
"mydomain.com" domain / zone name
"10.10.10.155" IP address
"servername" the name of the A record
"mydomain.com" domain / zone name
"10.10.10.155" IP address
remove-dnsServerResourceRecord -zoneName "mydomain.com" -RRType "A" -name "servername" -recordData "10.10.10.155"
remove-dnsServerResourceRecord -zoneName "10.10.10.in-addr.arpa" -RRType "Ptr" -name "155"
*note that PTR records are reversed. So if the IP address we were working with was 192.168.5.155 the zone name would be "5.168.192.in-addr.arpa" 10.10.10.155 is kind of a bad example because you can't see this reversal (all 10's either way.)
Conclusion
You can now recreate the correct records from DNS console.
No comments
Post a Comment