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

Rob M 6 Reputation points
2021-06-06T06:03:23.793+00:00

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 for business Windows Server User experience PowerShell
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Leon Laude 86,026 Reputation points
    2021-06-06T08:32:43.577+00:00

    Hi @Rob M ,

    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

    1 person found this answer helpful.
    0 comments No comments

  2. Johannes Kingma 26 Reputation points
    2022-07-06T14:38:16.657+00:00

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.