Performing a reverse (PTR) Lookup with NSLOOKUP

by | Aug 5, 2024 | IT Tips | 0 comments

Syntax is:

1
nslookup ip_of_host_to_lookup ip_of_dns_server

Example of successful lookup returning server name to IP mapping

1
2
3
4
5
6
PS C:\Users\ja> nslookup 10.73.2.21 10.73.2.9
Server:  TGN-DC03.TOGGEN.LOCAL
Address:  10.73.2.9
 
Name:    srv01.toggen.local
Address:  10.73.2.21

Example of failing lookup where the IP doesn't have a PTR record

1
2
3
4
5
6
PS C:\Users\ja> nslookup 10.73.2.20 10.73.2.9
 nslookup 10.73.2.20 10.73.2.9
Server:  TGN-DC03.TOGGEN.LOCAL
Address:  10.73.2.9
 
*** TGN-DC03.TOGGEN.LOCAL can't find 10.73.2.20: Non-existent domain

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.