ping -a w.x.y.z

Should resolve the name from the IP address if the reverse lookup zone has been set up properly. If the reverse lookup zone does not have an entry for the record, the -a will just ping without a name.

Answer from Peter on serverfault.com
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows-server › networking › dns › reverse-lookup
DNS Reverse Lookups in Windows and Windows Server | Microsoft Learn
Applies to: ✅ Windows Server 2025, ✅ Windows Server 2022, ✅ Windows Server 2019, ✅ Windows Server 2016 ... In most DNS lookups, clients typically perform a forward lookup, which is a search based on the DNS name of another computer as stored in an address (A) RR. This type of query expects an IP address as the resource data for the answered response. DNS also provides a reverse lookup process, enabling clients to use a known IP address during a name query and to look up a computer name based on its address.
People also ask

What is the difference between reverse IP lookup and reverse DNS lookup?
Reverse IP lookup typically refers to identifying domain names hosted on a specific IP address, often used in cybersecurity to assess website relationships. Reverse DNS lookup, on the other hand, specifically refers to mapping IP addresses to domain names through the PTR record type in DNS.
🌐
mailmodo.com
mailmodo.com › home › guides › reverse dns lookup
What Is Reverse DNS Lookup and How Does It Work
What is reverse DNS lookup?
A reverse domain name system (DNS) lookup, or reverse IP lookup, is the opposite sequence of a DNS lookup. It's essentially a reverse IP tracker. With a standard DNS lookup online, you query the DNS server or hostname to get the IP address. But with the reverse DNS lookup command, you query the IPv4 address or IPv6 address to find the hostname. Therefore, when entering the IP address into the reverse lookup tool, it tests PTR records, allowing users can locate the domain name associated with the corresponding IP.
🌐
whatismyip.com
whatismyip.com › reverse-dns-lookup
Reverse DNS Lookup | Reverse IP Lookup Tool - WhatIsMyIP.com®
How does reverse DNS lookup work?
A reverse DNS lookup searches DNS queries for PTR records, or DNS pointer records. A PTR record maps an IP address to the hostname, so if there is no PTR record for DNS on the server, a reverse DNS record lookup won't work.
🌐
whatismyip.com
whatismyip.com › reverse-dns-lookup
Reverse DNS Lookup | Reverse IP Lookup Tool - WhatIsMyIP.com®
🌐
MxToolBox
mxtoolbox.com › ReverseLookup.aspx
Reverse IP Lookup - MxToolbox
The Reverse Lookup tool will do a reverse IP lookup. If you type in an IP address, we will attempt to locate a dns PTR record for that IP address. You can then click on the results to find out more about that IP Address. Please note that in general, your ISP must setup and maintain these Reverse ...
🌐
Infrasos
infrasos.com › home › blog › how to use reverse dns lookup command on windows
How to Use Reverse DNS Lookup Command on Windows
July 22, 2024 - Before then, let’s explore how to use the NSLOOKUP command to perform reverse (and forward) DNS lookup on a Windows PC. The NSLOOKUP Command queries the DNS server on your Windows network settings to resolve IP addresses to host names (reverse ...
🌐
DNS Checker
dnschecker.org › reverse-dns.php
Reverse IP Lookup - Reverse DNS Lookup
If you are using Windows, run nslookup IP_address in your command prompt. If you are using Linux or MAC OS, run dig -x IP_address on Linux's console terminal or MacOs's terminal. Note: Replace the IP_address with your domain's IP address.
🌐
nixCraft
cyberciti.biz › nixcraft › howto › freebsd › reverse nslookup command
Reverse nslookup Command - nixCraft
September 12, 2024 - Explains how to use reverse nslookup command under UNIX/Linux or MS-Windows OS to find out an IP address to resolve a hostname/domain name
🌐
Computer Hope
computerhope.com › nslookup.htm
Nslookup Command
Windows XP syntax. nslookup [-opt ...] # interactive mode using default server nslookup [-opt ...] - server # interactive mode using 'server' nslookup [-opt ...] host # only look up 'host' using default server nslookup [-opt ...] host server # only look up 'host' using 'server' Commands: (identifiers are shown in uppercase, [] means optional) This command is used to perform a reverse lookup on an IP address as shown in the example below.
Find elsewhere
🌐
WhatIsMyIP.com®
whatismyip.com › reverse-dns-lookup
Reverse DNS Lookup | Reverse IP Lookup Tool - WhatIsMyIP.com®
For Windows users, the nslookup command via the command prompt is the best way to do a reverse domain lookup and check DNS records in a Windows server. Open the Windows start menu and search "command prompt" in the search bar.
🌐
Mailmodo
mailmodo.com › home › guides › reverse dns lookup
What Is Reverse DNS Lookup and How Does It Work
May 29, 2025 - You have to run a simple line in the Windows command prompt to perform the DNS request. Follow these steps to do it right: Open the command prompt. Type nslookup followed by the IP address and press 'Enter.'
🌐
EITCA Academy
eitca.org › home › how can you perform a forward lookup and a reverse lookup in windows server?
How can you perform a forward lookup and a reverse lookup in Windows Server? - EITCA Academy
August 5, 2023 - Right-click on the desired reverse lookup zone (e.g., 1.168.192.in-addr.arpa) and choose "New Pointer (PTR)". – Enter the IP address and the corresponding domain name in the respective fields and click "OK". – The DNS Manager will create a new PTR record, enabling reverse lookups for ...
🌐
Uptimia
uptimia.com › home › questions › how to use nslookup command for reverse ip lookup?
How to Use nslookup Command for Reverse IP Lookup?
July 11, 2024 - To perform a reverse DNS lookup using nslookup, open a command prompt and type: ... This command will automatically convert the IP address to the in-addr.arpa format and search for the PTR record.
🌐
Kickbox
blog.kickbox.com › how-to-perform-reverse-dns-lookup
How to Do a Reverse DNS Lookup (and Why)
June 27, 2023 - If there is a mismatch, this adds ... rejected by your email server. Windows users can take advantage of a reverse DNS lookup command "nslookup" to easily perform a DNS check....
🌐
Whois.is
whois.is › home › how to perform a reverse ip address lookup command
How To Perform A Reverse IP Address Lookup Command (2025)
July 17, 2023 - Windows users can utilize the nslookup command to perform a reverse IP address lookup.
🌐
Whois.is
whois.is › home › reverse ip lookup command: windows, linux & mac guide
Reverse IP Lookup Command: Windows, Linux & Mac Guide
February 19, 2025 - This process is useful for various purposes, such as identifying spammers, ensuring security, and troubleshooting network issues. Using Command Line on Windows or Linux On a Windows or Linux system, you can use the nslookup command to perform a reverse IP lookup.
🌐
Top10VPN
top10vpn.com › tools › reverse-ip-lookup
Reverse IP Lookup: Find IP Locations & Hostnames
Our free IP lookup tool finds the geolocation, PTR record, host info, and DNS info of any IP address on the internet.
🌐
WhatsMyDNS
whatsmydns.me › reverse-dns
Reverse DNS Lookup - Check IP to Hostname
Click on “Command Prompt” when it shows up in the search results. Once the CMD is open, type nslookup -q=ptr [example IP] Replace [example IP] with the IP address that you want to lookup
🌐
Microsoft Learn
learn.microsoft.com › en-us › troubleshoot › windows-server › networking › configure-subnetted-reverse-lookup-zone
Configure a subnetted reverse lookup zone - Windows Server | Microsoft Learn
When subnetting IP networks, additional bits are taken from the host portion of the IP address and given to the network portion. This is defined by adding additional bits to the subnet mask. The value 11111111.11111111.11111111.00000000 shows us a classful subnet mask for a Class C network of 255.255.255.0, while the value 11111111.11111111.11111111.11000000 illustrates the classless subnet mask of 255.255.255.192. Therefore, from the example above, we know that: Delegated subnetted reverse lookup zones can be used to transfer administrative control between any parent and child IN-ADDR.ARPA zone in the DNS.
🌐
Liquid Web
liquidweb.com › home › simple guide to reverse dns lookups
What Are Reverse DNS Lookups? How to Lookup IPs | Liquid Web
November 20, 2024 - This effectively pulls the PTR from the in-addr.arpa zone file from one of its own designated nameservers. There are various methods to perform a reverse DNS lookup.In Windows machines, you can use the nslookup command to perform rDNS lookup.
🌐
Perishable Press
perishablepress.com › cli-forward-reverse-lookup
CLI Forward-Reverse Lookup | Perishable Press
The point is, there are plenty of free online tools available for performing forward-reverse IP/host lookups. And online tools are great, but it’s also possible to do forward/reverse lookups directly via the command line, aka CLI.