DNSとは、IPアドレスとホスト名を相互変換するための仕組みです。そしてこの仕組みを実装するのがDNSサーバです。
DNSルックアップとは、DNSなどを使ってドメイン名からIPアドレスを調べたり、その逆を調べたりすることです。
nslookupは、DNSサーバをテストするためのコマンドライン ツールです。
C:\>nslookup 既定のサーバー: DNSサーバーの名前 Address: DNSサーバーのアドレス > www.yahoo.co.jp サーバー: DNSサーバーの名前 (同上) Address: DNSサーバーのアドレス (同上) 権限のない回答: 名前: www.g.yahoo.co.jp Address: 182.22.40.240 Aliases: www.yahoo.co.jp
ドメイン名によっては、複数のIPアドレスが返されることがあります。これはDNSラウンドロビン (DNS round robin) により、ドメイン名に複数のIPアドレスが割り当てられているからです。
C:\>nslookup google.com サーバー: DNSサーバーの名前 Address: DNSサーバーのアドレス 権限のない回答: 名前: google.com Addresses: 173.194.126.238 173.194.126.233 173.194.126.227 173.194.126.224 173.194.126.232 173.194.126.231 173.194.126.225 173.194.126.229 173.194.126.228 173.194.126.226 173.194.126.230
または、
Server: DNSサーバーの名前 Address: DNSサーバーのアドレス Non-authoritative answer: Name: google.com Address: 173.194.126.198 Name: google.com Address: 173.194.126.200 Name: google.com Address: 173.194.126.194 Name: google.com Address: 173.194.126.193 Name: google.com Address: 173.194.126.192 Name: google.com Address: 173.194.126.201 Name: google.com Address: 173.194.126.195 Name: google.com Address: 173.194.126.197 Name: google.com Address: 173.194.126.199 Name: google.com Address: 173.194.126.196 Name: google.com Address: 173.194.126.206
C:\>nslookup 182.22.40.240 サーバー: DNSサーバーの名前 Address: DNSサーバーのアドレス 名前: f3.top.vip.ssk.yahoo.co.jp Address: 182.22.40.240
または、
Server: DNSサーバーの名前 Address: DNSサーバーのアドレス Non-authoritative answer: 240.40.22.182.in-addr.arpa name = f3.top.vip.ssk.yahoo.co.jp. Authoritative answers can be found from:
レコード種別 | 意味 | 定義例 |
---|---|---|
SOA | ゾーン (ドメイン) 情報 | @ IN SOA dns.example.com. root.example.com. |
NS | ドメインのDNSサーバ名 | (ドメイン名) IN NS dns.sub.example.com. |
A | ホストのIPアドレス | www IN A 192.168.1.10 |
PTR | IPアドレスに対するホスト名 | 192.168.1.10 IN PTR www.example.com. |
CNAME | ホスト名のエイリアス (別名) | www IN CNAME backup1.example.com. |
MX | ドメインのメール・サーバ名 | (ドメイン名) IN MX 10 mail.example.com. |
HINFO | ホストの追加情報。ホストのハードウェア・ソフトウェア (OS) 情報 | www IN HINFO SonyL700 Linux-Kernel2.4 |
WKS | ホストで実行されているサービス情報 (Well Known Services) | www IN WKS TCP http ftp smtp |
TXT | ホストへのテキスト情報 | www IN TXT "Please Dont Touch Me" |
Dynamic DNSとはDNSレコードを動的に更新する技術で、RFC 2136として規格化されたDynamic Updates in the Domain Name System (DNS UPDATE) の通称です。DDNSとは 〔 ダイナミックDNS 〕 〔 動的DNS 〕 - IT用語辞典 e-Words