Get the App
SLTechnology News&Howtos  ›  Servers  › 

Cloud Computing Learning Route course outline Courseware: client query

Shulou Source: shulou.com Published: 2022-06-02 16:31:35 09月30日 Update

Cloud Computing Learning Route course outline Courseware client query:

=

Nslookup,host,dig

The client specifies a local DNS

[root@tianyun ~] # cat / etc/resolv.conf

Nameserver 192.168.2.115

[root@tianyun ~] # dig www.baidu.com

[root@tianyun ~] # nslookup www.baidu.com

[root@tianyun ~] # host www.baidu.com

Dig (Linux)

[root@tianyun ~] # dig www.126.com / / use the DNS set by / etc/resolv.conf

[root@tianyun ~] # dig @ 192.168.2.168 www.126.com / / use the specified DNS

[root@tianyun ~] # dig @ 192.168.2.100 www.126.com / / use the specified DNS

Host (Linux)

[root@tianyun ~] # host-t A www.baidu.com / / forward parsing, query A record

[root@tianyun ~] # host 192.168.5.100 / / reverse parsing, query PTR records

[root@tianyun ~] # host www.baidu.com 192.168.5.240 / / parsing using DNS server 192.168.5.240

[root@tianyun ~] # host-t SOA baidu.com / / query the SOA of a domain

Baidu.com has SOA record ns.baidu.com. Root.baidu.com. 2013081303 3600 900 604800 86400

[root@tianyun ~] # host-t NS baidu.com / / query the NS of a domain

Baidu.com name server ns.baidu.com.

Baidu.com name server ns2.baidu.com.

[root@tianyun ~] #

[root@tianyun ~] # host-t MX baidu.com / / query the mail server of a domain

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 / / resolve using a temporarily specified server

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 Qinta

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 /?

Tags: Query server service client client outline tutorial courseware route learning mail Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL Docker macOS Apple