Solved

AAAA records in DNS

Posted on 2014-10-14
4
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 34

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

What, When and Where - Security Threats from Q1

Join Corey Nachreiner, CTO, and Marc Laliberte, Information Security Threat Analyst, on July 26th as they explore their key findings from the first quarter of 2017.

Question has a verified solution.

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

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…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Suggested Courses

623 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