2009年3月24日星期二

linux 下host的用法備忘

host可以實現了類似nslookup的功能,簡單方便,下面是常用的幾個
[root@rac2 ~]# host www.google.com
www.google.com is an alias for www.l.google.com.
www.l.google.com has address 209.85.143.147
www.l.google.com has address 209.85.143.104
www.l.google.com has address 209.85.143.99

[root@rac2 ~]# host -t NS google.com
google.com name server ns2.google.com.
google.com name server ns1.google.com.
google.com name server ns3.google.com.
google.com name server ns4.google.com.


[root@rac2 ~]# host -t MX google.com
google.com mail is handled by 10 smtp4.google.com.
google.com mail is handled by 10 smtp1.google.com.
google.com mail is handled by 10 smtp2.google.com.
google.com mail is handled by 10 smtp3.google.com.



[root@rac2 ~]# host -t SOA google.com
google.com has SOA record ns1.google.com. dns-admin.google.com. 2009032300 7200 1800 1209600 300

[root@rac2 ~]# host 209.85.143.99
99.143.85.209.in-addr.arpa domain name pointer ti-in-f99.google.com.

其他可以效法之,備忘記錄一下

没有评论:

发表评论