Description:
The NSLookup command is a program that queries the Internet Domain Name Service. The NSLookup command has two modes: Interactive and non-interactive.
Interactive Mode allows users to query different types of hosts and domain names or output host lists in one domain name to query domain name-related information.
Non-interactive mode is only used to output the information required by the name and host or domain name.
Example:
# NSLookup
> Www.baidu.com
Server: 172.31.0.2
Address: 172.31.0.2 #53
Non-Authoritative Answer:
Www. Baidu. comcanonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 220.181.111.188
Name: www.a.shifen.com
Address: 220.181.112.244
# NSLookup www.baidu.com
Server: 172.31.0.2
Address: 172.31.0.2 #53
Non-Authoritative Answer:
Www. Baidu. comcanonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 220.181.112.244
Name: www.a.shifen.com
Address: 220.181.111.188
# NSLookup
> Set q = mx
> Www.baidu.com
Server: 172.31.0.2
Address: 172.31.0.2 #53
Non-Authoritative Answer:
Www. Baidu. comcanonical name = www.a.shifen.com.
Authoritative answers can be found from:
A.shifen.com
Origin = ns1.a.shifen.com
Mail ADDR = baidu_dns_master.baidu.com
Serial = 1410210001
Refresh = 5
Retry = 5
Expire = 86400
Minimum= 3600
DNS query command NSLookup