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