This topic contains 3 replies, has 2 voices, and was last updated by
September 24, 2019 at 3:37 pm #179379ParticipantTopics: 26Replies: 57Points: 123Rank: Participant
the documentation sure says PTR is a valid option for -Type, but I can't figure out how to query a reverse zone for ptr records.
resolve-dnsname 10.10.10.in-addr.arpa -Server MyDNSServer -type any
returns NS, SOA and A records for that 10.10.10.0 reverse zone, but no PTR records (yes, there are PTR records in the zone). so obviously
resolve-dnsname 10.10.10.in-addr.arpa -Server MyDNSServer -type ptr
anybody know what i'm doing wrong?
September 24, 2019 at 3:45 pm #179385ParticipantTopics: 0Replies: 113Points: 420Rank: Contributor
You will need to specify the IP address of the record you are trying to complete a reverse look up i.e. below.
Resolve-DnsName -Server dns.google.com -Name 188.8.131.52 -Type ptr | FL Name : 184.108.40.206.in-addr.arpa Type : PTR TTL : 21073 Section : Answer NameHost : dns.google
September 24, 2019 at 3:57 pm #179388ParticipantTopics: 26Replies: 57Points: 123Rank: Participant
i figured it out. i'm trying to query for all PTR records in a reverse zone. like the nslookup command
ls -d 10.10.10.in-addr.arpa
but resolve-dns name is for querying for an individual address. so when i point it at 10.10.10.in-addr.arpa , i'm only getting the records for that zone itself, not the records it contains.
this does what i want:
get-dnsserverresourcerecord 10.10.10.in-addr.arpa -computername myDNSserver -rrtype ptr
September 24, 2019 at 4:01 pm #179394ParticipantTopics: 0Replies: 113Points: 420Rank: Contributor
Yes, that is correct, essentially you are tyring to complete an entire Dig of a ReverseLookup zone. That is out of the scope of Resolve-DNSName. Glad you were able to figure it out quickly! Let us know if you have any other questions.
You must be logged in to reply to this topic.