Example of nslookup command usage in Windows

Source: Internet
Author: User
Tags mx record nameserver nslookup nslookup command

Grammar

nslookup [-subcommand ...] [{computertofind| [-server]}]

Parameters

-subcommand ...
Specifies one or more nslookup subcommand as command-line options.
ComputerToFind
If no other server is specified, the current default DNS name server is used to refer to the ComputerToFind information. To find computers that are not in the current DNS domain, attach a period to the name.
-server
Specifies that the server is to be used as a DNS name server. If-server is omitted, the default DNS name server is used.
{help|?}
Displays a brief summary of the NSLOOKUP subcommand.

Example

query field name a record is in effect
Command format: nslookup domain
C:usersadministrator>nslookup 111cn.net
Server: 20130000-0000.lan
address:192.168.1.1

Non-authoritative answer:

Name: 111cn.net
address:114.215.187.51

Whether the MX record for the query domain takes effect

Command format: NSLOOKUP-QT=MX domain
C:USERSADMINISTRATOR>NSLOOKUP-QT=MX 111cn.net
Server: 20130000-0000.lan
address:192.168.1.1

non-authoritative answer:

111cn.net MX preference = ten, mail exchanger = mxbiz2.qq.com
111cn.net MX preference = 5, mail exchanger = mxbiz1.qq.com

111cn.net nameserver = f1g1ns1.dnspod.net
111cn.net nameserver = f1g1ns2.dnspod.net
mxbiz1.qq.com Internet address = 113.108.16.61
mxbiz1.qq.com AAAA IPv6 address = 240e:ff:f040:28::c
mxbiz2.qq.com Internet address = 113.108.16.61
mxbiz2.qq.com AAAA IPv6 address = 240e:ff:f040:28::c
F1g1ns1.dnspod.net Internet address = 180.153.9.189
F1g1ns1.dnspod.net Internet address = 182.140.167.166
F1g1ns1.dnspod.net Internet address = 183.60.52.217
F1g1ns1.dnspod.net Internet address = 119.167.195.3
F1g1ns2.dnspod.net Internet address = 112.90.143.29
F1g1ns2.dnspod.net Internet address = 122.225.217.191
F1g1ns2.dnspod.net Internet address = 180.153.162.150
F1g1ns2.dnspod.net Internet address = 182.140.167.188

NS server used to query domain names

Command format: Nslookup-qt=ns domain
C:usersadministrator>nslookup-qt=ns 111cn.net
Server: 20130000-0000.lan
address:192.168.1.1

Non-authoritative answer:
111cn.net nameserver = f1g1ns1.dnspod.net
111cn.net nameserver = f1g1ns2.dnspod.net

F1g1ns1.dnspod.net Internet address = 182.140.167.166
F1g1ns1.dnspod.net Internet address = 183.60.52.217
F1g1ns1.dnspod.net Internet address = 119.167.195.3
F1g1ns1.dnspod.net Internet address = 180.153.9.189
F1g1ns2.dnspod.net Internet address = 112.90.143.29
F1g1ns2.dnspod.net Internet address = 122.225.217.191
F1g1ns2.dnspod.net Internet address = 180.153.162.150
F1g1ns2.dnspod.net Internet address = 182.140.167.188

CNAME alias record for query domain name

Command format: nslookup-qt=cname domain
C:usersadministrator>nslookup-qt=cname www.111cn.net
Server: 20130000-0000.lan
address:192.168.1.1

Non-authoritative answer:
Www.111cn.net Canonical name = 111cn.net

111cn.net nameserver = f1g1ns1.dnspod.net
111cn.net nameserver = f1g1ns2.dnspod.net
F1g1ns1.dnspod.net Internet address = 119.167.195.3
F1g1ns1.dnspod.net Internet address = 180.153.9.189
F1g1ns1.dnspod.net Internet address = 182.140.167.166
F1g1ns1.dnspod.net Internet address = 183.60.52.217
F1g1ns2.dnspod.net Internet address = 112.90.143.29
F1g1ns2.dnspod.net Internet address = 122.225.217.191
F1g1ns2.dnspod.net Internet address = 180.153.162.150
F1g1ns2.dnspod.net Internet address = 182.140.167.188

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.