'How to Delete DNS Record using script

I want to delete a particular DNS "A" record and its corresponding "PTR" record by using "DNSCMD" or "Remove-DnsServerResourceRecord" from local Active Directory DNS, IF and only IF, it only resolve host name by "NSLOOKUP" or "Resolve-DnsName". By using either batch file or PowerShell.

dns


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source