Query DNS Manger ?

Microsoft Windows
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

Query DNS Manger ?

Post by MigrationUser »

28 Oct 2013 03:27
Cozmo


While I'm rather new to powerShell v3, there's some things I can do with it, however, one thing that has eluded me is how to pull all hosts listed in our DNS Manager (Server 2008 R2). I don't need to set or remove anything just have it query the listing into a text file. Surprisingly I'm not finding a way to do this. Has anybody ever done this before? Can you tell me how you did it, please?

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

#30 Oct 2013 14:16
Cozmo


Doesn't appear to be much activity in this forum.

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

#30 Oct 2013 16:09
npocmaka


better try in Stackoverflow...

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

#23 Nov 2013 23:28
adbertram


You can do: Get-DNSServerResourceRecord -Server DNS_SERVER -Zone ZONE_NAME -RRType A

This will get all of the A records from the specified zone.

Blog --> adamtheautomator.com

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

#19 Oct 2014 08:44
jony33


I don't need to set or remove anything just have it query the listing into a text file. Surprisingly I'm not finding a way to do this. Has anybody ever done this before? Can you tell me how you did it, please?

Mohsin

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

#19 Oct 2014 11:56
Simon Sheppard


To use the DNS cmdlets you first need to

Code: Select all

 Import-Module DnsServer
To list the cmdlets available:

Code: Select all

 Get-Command –Module DnsServer
As with any 'Get-' cmdlet, you can assign it to a variable and redirect out to a file.
Post Reply