Solved

AAAA records in DNS

Posted on 2014-10-14
4
187 Views
Last Modified: 2014-10-20
HI Guys,

We have server 2008 R2 running DNS and there are many AAAA records that i need to delete,

is there a powershell commnad that can find all the dns with the AAAA and then delete them?

Thank you in advance .

Regards,
K
0
Comment
Question by:Kay
  • 2
4 Comments
 
LVL 33

Expert Comment

by:it_saige
ID: 40380311
I think that this will point you down the right path.

http://rcmtech.wordpress.com/2014/02/26/get-and-delete-dns-a-and-ptr-records-via-powershell/

-saige-
0
 
LVL 29

Expert Comment

by:becraig
ID: 40380317
So you can look into using:
Get-DnsServerResourceRecord

A potential script might look like:

$DNSServer = "dns01.domain.local"
$ZoneName = "domain.local"
$NodeDNS = $null
$NodeDNS = Get-DnsServerResourceRecord -ZoneName $ZoneName -ComputerName $DNSServer -RRType AAAA -ErrorAction SilentlyContinue
if($NodeDNS -eq $null){
    Write-Host "No DNS record found"
} else {
    Remove-DnsServerResourceRecord -ZoneName $ZoneName -ComputerName $DNSServer -InputObject $NodeDNS -Force
}

Open in new window

0
 
LVL 29

Expert Comment

by:becraig
ID: 40380357
A little more info on the DNS PS commands:
http://technet.microsoft.com/en-us/library/jj649863.aspx

This will really help you.
0
 
LVL 40

Accepted Solution

by:
footech earned 500 total points
ID: 40380397
Except 2008 R2 doesn't have those DNS commands...
You could look into DNSShell by Chris Dent.  https://dnsshell.codeplex.com/
Otherwise I think you're looking at parsing output from dnscmd, or I think I've heard of using WMI to modify DNS, but I've never looked into that.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question