SCIENTIFIC-LINUX-USERS Archives

October 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chris Schanzle <[log in to unmask]>
Reply To:
Chris Schanzle <[log in to unmask]>
Date:
Thu, 4 Oct 2012 11:27:21 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
On 10/04/2012 09:58 AM, Steven Miano wrote:
>   dig youtube.com <http://youtube.com> | egrep youtube.com <http://youtube.com> | awk '{ print $5 }' | grep . | grep -v '<<' > yt.dig

You'd block google's DNS servers with that, which might not be a problem on the client, but may I suggest a "new and improved" method:

host youtube.com | awk '/has address/ {print $NF}'
74.125.228.5
74.125.228.3
74.125.228.1
74.125.228.14
74.125.228.0
74.125.228.8
74.125.228.2
74.125.228.6
74.125.228.4
74.125.228.9
74.125.228.7


Remove the awk filter and you'll also see the IPv6:

youtube.com has IPv6 address 2607:f8b0:400d:c00::5d

ATOM RSS1 RSS2