Nslookup.exe or nslookup is a network administratiom command-line administrative tool for testing, dignosis and troubleshoot DNS servers issue. To use nslookup in Windows operating system, TCP/IP protocol must be installed and at least one DNS server has been configured. Nslookup command can be run in two modes, interactive and noninteractive mode. Example 1 show that nslookup was execute on noninteractive mode as below syntax :
nslookup [-option] [hostname] [server]
Example 2 and Example 3 was execute in interactive mode, simply type “nslookup” at the command prompt as below :
Example 1 – Use nslookup command to get ip addresses of the website:
C:\>nslookup google.com Server: google-public-dns-a.google.com Address: 8.8.8.8 Non-authoritative answer: Name: google.com Addresses: 74.125.128.100, 74.125.128.139, 74.125.128.113, 74.125.128.138 74.125.128.101, 74.125.128.102 C:\>
Example 2 – Use nslookup command to get name servers of the websites :
C:\>nslookup Default Server: google-public-dns-a.google.com Address: 8.8.8.8 > set type=ns > bloggerbaru.com Server: google-public-dns-a.google.com Address: 8.8.8.8 Non-authoritative answer: bloggerbaru.com nameserver = ns2939.hostgator.com bloggerbaru.com nameserver = ns2940.hostgator.com >
Example 3 – Use nslookup to get mx record of the websites :
C:\>nslookup Default Server: google-public-dns-a.google.com Address: 8.8.8.8 > set type=mx > bloggerbaru.com Server: google-public-dns-a.google.com Address: 8.8.8.8 Non-authoritative answer: bloggerbaru.com MX preference = 0, mail exchanger = bloggerbaru.com > bloggermy.com Server: google-public-dns-a.google.com Address: 8.8.8.8 Non-authoritative answer: bloggermy.com MX preference = 10, mail exchanger = ASPMX3.GOOGLEMAIL.com bloggermy.com MX preference = 1, mail exchanger = ASPMX.L.GOOGLE.com bloggermy.com MX preference = 5, mail exchanger = ALT1.ASPMX.L.GOOGLE.com bloggermy.com MX preference = 5, mail exchanger = ALT2.ASPMX.L.GOOGLE.com bloggermy.com MX preference = 10, mail exchanger = ASPMX2.GOOGLEMAIL.com >