1. (Default UDP) format: nslookup [hostname] [server]
As:nslookup twitter.com 8.8.8.8
Display:
>nslookup twitter.com 8.8.8.8
Server: google-public-dns-a.google.com
Address: 8.8.8.8
Non-authoritative answer:
Name: twitter.com
Address: 59.24.3.173 If [server] is not specified, the DNS server address set by the system is used.
PS: Of course, for well-known reasons, the IP of 59.24.3.173 is not actually the real IP address of the Twitter domain name.
2. (Using TCP) format: nslookup -vc [hostname] [server] For example: nslookup -vc twitter.com 8.8.8.8 Display: >nslookup -vc twitter.com 8.8.8.8
Server: google-public-dns-a.google.com
Address: 8.8.8.8
Non-authoritative answer:
Name: twitter.com
Address: 199.59.148.82 199.59.150.7 199.59.150.39
|