hostコマンドを含むパッケージ
# yum install bind-utils
使い方
"http://"は付けないyo
# host www.google.co.jp www.google.co.jp is an alias for www.google.com. www.google.com is an alias for www.l.google.com. www.l.google.com has address 66.249.89.147 www.l.google.com has address 66.249.89.99 www.l.google.com has address 66.249.89.104
詳細情報
# host -a www.google.co.jp Trying "www.google.co.jp" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37666 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4 ;; QUESTION SECTION: ;www.google.co.jp. IN ANY ;; ANSWER SECTION: www.google.co.jp. 231865 IN CNAME www.google.com. ;; AUTHORITY SECTION: google.co.jp. 68555 IN NS ns3.google.com. google.co.jp. 68555 IN NS ns4.google.com. google.co.jp. 68555 IN NS ns1.google.com. google.co.jp. 68555 IN NS ns2.google.com. ;; ADDITIONAL SECTION: ns1.google.com. 159147 IN A 216.239.32.10 ns2.google.com. 159147 IN A 216.239.34.10 ns3.google.com. 159147 IN A 216.239.36.10 ns4.google.com. 159147 IN A 216.239.38.10 Received 198 bytes from 192.168.30.1#53 in 20 ms