基本介紹
- 外文名:Nslookup命令
- 實例:查詢163.com域名信息
- 查詢域名:Server: ns-px.online.sh.cn
- 診斷:域名系統 (DNS) 基礎結構的信
基本信息,條件記錄,
基本信息
簡單介紹如下:
實例:查詢163.com域名信息
D:>nslookup
Default Server: ns-px.online.sh.cn
Address: 202.96.209.5
當前的DNS伺服器 ,可用server命令改變。
設定查選條件為所有類型記錄(A、MX等)
查詢域名,注意有.
Server: ns-px.online.sh.cn
Address: 202.96.209.5
查詢結果~~
Non-authoritative answer:
未證實回答,出現此提示表明該域名的註冊主DNS非提交查詢的DNS伺服器
163.com nameserver = NS.NEASE.NET
163.com nameserver = NS2.NEASE.NET
查詢域名的名字伺服器
163.com
primary name server = ns.163.com
主要名字伺服器
responsible mail addr = admin.NEASE.NET
聯繫人郵件地址[email protected]
serial = 20010348
區域傳遞序號,又叫檔案版本,當發生區域複製時,該域用來指示區域信息的更新情況。
refresh = 10800 (3 hours)
重刷新時間,當區域複製發生時,指定區域複製的更新時間間隔
retry = 3600 (1 hour)
重試時間,區域複製失敗時,重新嘗試的時間
expire = 360000 (4 days 4 hours)
有效時間,區域複製在有效時間內不能完成,則終止更新
default TTL = 3600 (1 hour)
TTL設定
被查詢域名的資料
163.com MX preference = 50, mail exchanger = m218.163.com
163.com MX preference = 50, mail exchanger = m207.163.com
163.com MX preference = 50, mail exchanger = m208.163.com
163.com MX preference = 50, mail exchanger = m209.163.com
163.com MX preference = 50, mail exchanger = m210.163.com
163.com MX preference = 50, mail exchanger = m229.163.com
163.com MX preference = 50, mail exchanger = m246.163.com
163.com MX preference = 50, mail exchanger = m180.163.com
163.com MX preference = 50, mail exchanger = m214.163.com
163.com internet address = 202.106.185.77
163.com nameserver = NS.NEASE.NET
163.com nameserver = NS2.NEASE.NET
NS.NEASE.NET internet address = 202.106.185.75
NS2.NEASE.NET internet address = 61.145.113.57
m218.163.com internet address = 202.108.44.218
m207.163.com internet address = 202.108.44.207
m208.163.com internet address = 202.108.44.208
m209.163.com internet address = 202.108.44.209
m210.163.com internet address = 202.108.44.210
m229.163.com internet address = 202.108.44.229
m246.163.com internet address = 202.108.44.246
m180.163.com internet address = 202.108.44.180
條件記錄
該命令的幫助(漢字部分為說明)
Commands: (identifiers are shown in uppercase, [] means optional)
命令,標記有[]為可選
NAME - print info about the host/domain NAME using default server
查詢主機或域名,用預設伺服器
NAME1 NAME2 - as above, but use NAME2 as server
查詢主機或域名,用NAME2做提交查詢伺服器
help or ? - print info on common commands
列印幫助信息
set OPTION - set an option
設定選項
all - print options, current server and host
列印當前選項和伺服器
[no]debug - print debugging information
列印調試信息
[no]d2 - print exhaustive debugging information
列印詳細的調試信息
[no]defname - append domain name to each query
在查詢中增加域名
[no]recurse - ask for recursive answer to query
請求遞歸查詢
[no]search - use domain search list
使用域名搜尋列表
[no]vc - always use a virtual circuit
始終使用虛電路
domain=NAME - set default domain name to NAME
設定預設域名
srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1,N2, etc.
設定域名列表搜尋列表
root=NAME - set root server to NAME
設定根伺服器
retry=X - set number of retries to X
設定重試次數
timeout=X - set initial time-out interval to X seconds
設定逾時時間
type=X - set query type (ex. A,ANY,CNAME,MX,NS,PTR,SOA,SRV)
設定查詢記錄類型
querytype=X - same as type
與上同
class=X - set query class (ex. IN (Internet), ANY)
設定查詢類
[no]msxfr - use MS fast zone transfer
使用快速區域傳遞
ixfrver=X - current version to use in IXFR transfer request
server NAME - set default server to NAME, using current default server
lserver NAME - set default server to NAME, using initial server
finger - finger the optional NAME at the current default host
root - set current default server to the root
ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
-a - list canonical names and aliases
-d - list all records
-t TYPE - list records of the given type (e.g. A,CNAME,MX,NS,PTR etc.)
view FILE - sort an ls output file and view it with pg
exit - exit the program
退出程式