Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
# 従来の nslookup による確認
# [nslookup (問い合わせたいホスト) (問い合わせ先の DNS サーバー)]
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
# PowerShell の Cmdlet による確認
# 正引き
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
# 逆引き
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
|