domain name list to ip resolve by host, xargs, commands

domain_list

jerry@jerry-P5Q-office:~$ less query_domain_list

tw.yahoo.com
www.google.com.tw
www.facebook.com
www.hinet.net
www.bot.com.tw
query_domain_list (END)

resolve ip address from domain_list

jerry@jerry-P5Q-office:~$ cat query_domain_list |xargs -L 1 host >> resoleved_list
jerry@jerry-P5Q-office:~$ less resoleved_list

tw.yahoo.com is an alias for tw.frontpage.wg1.b.yahoo.com.
tw.frontpage.wg1.b.yahoo.com is an alias for tw-tw.frontpage.wg1.b.yahoo.com.
tw-tw.frontpage.wg1.b.yahoo.com has address 203.188.197.200
tw-tw.frontpage.wg1.b.yahoo.com has address 119.160.246.241
www.google.com.tw has address 74.125.31.94
www.google.com.tw has IPv6 address 2404:6800:4008:c00::5e
www.facebook.com is an alias for star.c10r.facebook.com.
star.c10r.facebook.com has address 31.13.75.23
star.c10r.facebook.com has IPv6 address 2a03:2880:10:8f02:face:b00c:0:1
star.c10r.facebook.com mail is handled by 10 smtpin.mx.facebook.com.
www.hinet.net has address 202.39.224.7
www.hinet.net has IPv6 address 2001:b000:180:3::7
www.bot.com.tw has address 103.21.63.120
www.bot.com.tw has address 210.71.212.120

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s