#1 28 Oct 2013 03:27

Cozmo
Member
From: Texas
Registered: 19 Aug 2011
Posts: 29

Query DNS Manger ?

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?

Offline

#2 30 Oct 2013 14:16

Cozmo
Member
From: Texas
Registered: 19 Aug 2011
Posts: 29

Re: Query DNS Manger ?

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

Offline

#3 30 Oct 2013 16:09

npocmaka
Member
From: Bulgaria
Registered: 03 Dec 2009
Posts: 421

Re: Query DNS Manger ?

better try in Stackoverflow...

Offline

#4 23 Nov 2013 23:28

adbertram
New Member
From: Indiana
Registered: 23 Nov 2013
Posts: 1

Re: Query DNS Manger ?

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

Offline

#5 19 Oct 2014 08:44

jony33
New Member
Registered: 19 Oct 2014
Posts: 1

Re: Query DNS Manger ?

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

Offline

#6 19 Oct 2014 11:56

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 873
Website

Re: Query DNS Manger ?

To use the DNS cmdlets you first need to

 Import-Module DnsServer

To list the cmdlets available:

 Get-Command –Module DnsServer

As with any 'Get-' cmdlet, you can assign it to a variable and redirect out to a file.

Offline

Board footer

Powered by FluxBB