Windows 2025
Sponsored Link

DNS Server : Verify resolving2024/11/28

 

Verify resolving Hostname or IP address.

[1] Run PowerShell with Admin Privilege and make sure like follows.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# with nslookup command
# [nslookup (hostname to resolv) (server to ask)]
PS C:\Users\Administrator> nslookup rx-8.srv.world 127.0.0.1 
Server:  localhost
Address:  127.0.0.1

Name:    rx-8.srv.world
Address:  10.0.0.102

PS C:\Users\Administrator> nslookup 10.0.0.102 127.0.0.1 
Server:  localhost
Address:  127.0.0.1

Name:    rx-8.srv.world
Address:  10.0.0.102


# with PowerShell Cmdlet
# Forward lookup
PS C:\Users\Administrator> Resolve-DnsName rx-8.srv.world -Type A -Server 127.0.0.1 

Name                                           Type   TTL   Section    IPAddress
----                                           ----   ---   -------    ---------
rx-8.srv.world                                 A      3600  Answer     10.0.0.102

# Reverse lookup
PS C:\Users\Administrator> Resolve-DnsName 10.0.0.102 -Type PTR -Server 127.0.0.1 

Name                           Type   TTL   Section    NameHost
----                           ----   ---   -------    --------
102.0.0.10.in-addr.arpa        PTR    3600  Answer     rx-8.srv.world
Matched Content