Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to find all properties of RecordData from Get-DnsServerResourceRecord

$
0
0

When I use Get-DnsServerResourceRecord I can obviously get the zone details, but I'm trying to do a select-object on the RecordData column which isn't straight forward since it's not a simple text string.

What I've found so far... I can query specific properties of RecordData to query types of record, for instance :

Get-DnsServerResourceRecord -zonename "myzone.com" | where-object {$_.RecordData.nameserver -match "ns1"}

Get-DnsServerResourceRecord -zonename "myzone.com" | where-object {$_.RecordData.ipv4address -match "192.168"}

will let me query NS records and A record IP addresses.

How do I find the other properties available from RecordData other than nameserver and ipv4address? Presumably there must also be properties for MX records, CNAME records, Text records, IPv6 records etc, but I can't work out how to find what they are.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>