雲計算學習路線教程大綱課件客戶端查詢:服務器
====================================================================================ide
nslookup,host,dig學習
客戶端指定本地DNS雲計算
[root@tianyun ~]# cat /etc/resolv.confserver
nameserver 192.168.2.115教程
[root@tianyun ~]# dig www.baidu.comip
[root@tianyun ~]# nslookup www.baidu.comit
[root@tianyun ~]# host www.baidu.comclass
dig (Linux)im
[root@tianyun ~]# dig www.126.com //使用/etc/resolv.conf設置的DNS
[root@tianyun ~]# dig @192.168.2.168 www.126.com //使用指定的DNS
[root@tianyun ~]# dig @192.168.2.100 www.126.com //使用指定的DNS
host (Linux)
[root@tianyun ~]# host -t A www.baidu.com //正向解析,查詢A記錄
[root@tianyun ~]# host 192.168.5.100 //反向解析,查詢PTR記錄
[root@tianyun ~]# host www.baidu.com 192.168.5.240 //使用DNS服務器192.168.5.240解析
[root@tianyun ~]# host -t SOA baidu.com //查詢某個域的SOA
baidu.com has SOA record ns.baidu.com. root.baidu.com. 2013081303 3600 900 604800 86400
[root@tianyun ~]# host -t NS baidu.com //查詢某個域的NS
baidu.com name server ns.baidu.com.
baidu.com name server ns2.baidu.com.
[root@tianyun ~]#
[root@tianyun ~]# host -t MX baidu.com //查詢某個域的郵件服務器
baidu.com mail is handled by 10 mail.baidu.com.
nslookup (Linux/Windows)
[root@tianyun ~]# nslookup www.baidu.com
[root@tianyun ~]# nslookup 192.168.5.100
[root@tianyun ~]# nslookup
www.baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: www.baidu.com
Address: 192.168.5.100
192.168.5.2
Server: 127.0.0.1
Address: 127.0.0.1#53
2.5.168.192.in-addr.arpa name = www.baidu.com.
[root@tianyun ~]# nslookup
server 192.168.5.2 //使用臨時指定的服務器解析
Default server: 192.168.5.2
Address: 192.168.5.2#53
[root@tianyun ~]# nslookup
set q=soa
baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53
baidu.com
origin = ns.baidu.com
mail addr = root.baidu.com
serial = 2013081303
refresh = 3600
retry = 900
expire = 604800
minimum = 86400
set q=ns
baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53
baidu.com nameserver = ns.baidu.com.
baidu.com nameserver = ns2.baidu.com.
[root@tianyun ~]# nslookup
set q=mx
baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53
baidu.com mail exchanger = 10 mail.baidu.com.
set q=a
www.baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: www.baidu.com
Address: 192.168.5.100
C:\>ipconfig /?