question

RobM-7896 avatar image
1 Vote"
RobM-7896 asked JohannesKingma-1975 answered

Powershell Resolve-DnsName can I use it to do reverse lookups?

Powershell Resolve-DnsName can I use it to do reverse lookups?
I am doing aname lookups using
Resolve-DnsName $Name -Server $ServerList -ErrorAction Stop | Where-Object {$_.Type -eq 'A'}

how would I do reverse lookups?

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
1 Vote"
LeonLaude answered LeonLaude edited

Hi @RobM-7896,

To perform reserve DNS lookups you simply put the IP addresses instead of the server names, as follows:

Resolve-DnsName <IP address>

Example:

102731-resolve-dnsname.png


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)


Best regards,
Leon


resolve-dnsname.png (14.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JohannesKingma-1975 avatar image
0 Votes"
JohannesKingma-1975 answered

I get an error x.x.x.x DNS-Name does not exist

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.