I'm using the script from
http://adminsline.wordpress.com/2012/08 ... k-youtube/
in order to make address list with YouTube video server IPs from DNS cache so I can make some redirections.
I wish to use the same script so I could grab IP addresses of some other video streaming sites,
like vimeo.com, imdb.com and so on. While for YouTube video servers I get A records in DNS cache, for Vimeo or IMDB
I actually get CNAME records and the above script can't resolve them.
There is other script on Mikrotik Wiki:
http://wiki.mikrotik.com/wiki/Sync_Addr ... _A_Records
which works with CNAME records as well but is not suitable as such for my situation (the first script as search string
takes part of the server name, for example "googlevideo", "vimeocdn" etc).
Unfortunately I'm not that good at scripting and can't figure out how to incorporate the CNAME resolving part of the second
script into the first one.
Has anyone done something like that and is willing to help? It would be much appreciated.