1. host

host x.com

host nslookup dig_Linux

 

 

 

host -t ns x.com

host -t mx x.com

host nslookup dig_Linux_02

 

 

 

 

2. nslookup

  

nslookup. x.com

host nslookup dig_Linux_03

 

 

nslookup

 

set type=ns

x.com

 

 

set type=mx

x.com

host nslookup dig_Linux_04

 

 

 

 

3. dig

dig x.com

 host nslookup dig_Linux_05

 

 

global options里面可以通过 dig —help 来查看 

 

dig x.com -t mx