dig (domain information gropher) is much more powerful than nslookup which is scheduled to be phased out in Unix and Linux distribution. Take an example below. If I want to use the name server 202.81.252.1 to query mx record of yahoo.com.hk, I will issue the following four commands one by one :
$nslookup
>server 202.81.252.1
>set type=mx
>yahoo.com.hk.
In dig, just one single command can complete the whole query process :
$dig 202.81.252.1 yahoo.com.hk. mx
Hmmmmm, I should give up using nslookup and try to use dig in order to prepare myself as a contemporary network administrator.
No comments:
Post a Comment