Route youtube

I have to route youtube to another WAN interface.
I tried with some IP ranges, no success.
I tried with another method: script to search on DNS records for “youtube”, send thats IPs to an address-list, route traffic to that address-list to desired WAN gateway, but even this way is not so efficent!
Pls, does exist any other way to route youtube to speccific gateway or WAN interface?

Thank you in advance.

Put all youtube IP addresses in address-list. Mark routing for said address-list under firewall mangle.

You might want to try an entry in
/ip dns static
This will override any external dns. Add an entry for each domain name youtube uses.

It might be harder than I originally thought. Google bought Youtube and they use the same IP address pool. :confused:

Thank you guys. I’ll try it.
I have some DNS records for youtube, but I dont know if thay are enough!
I need help to find all dns that youtube uses. Does exist any tools or website for this purpose?

thanks again.

Pls, any help?

I would also like to know how to get the address blocks of YouTube, Facebook and the major upload/download services like Rapidshare.
So far I’ve roughly created a list of these sites. Unfortunately these address blocks aren’t that accurate, since I haven’t taken the time to go through like all 200 DNS entries to include only the matching IP addresses → instead I just used the whole Class C block.

 0   ;;; Facebook.com
     Low Priority Sites                         69.63.178.0-69.63.189.255
 1   ;;; YouTube.com
     Low Priority Sites                         74.125.127.100
 2   ;;; YouTube.com
     Low Priority Sites                         74.125.45.100
 3   ;;; YouTube.com
     Low Priority Sites                         74.125.67.100
 4   ;;; YouTube (v8.nonxt1.l.google.com, v18-v25)
     Low Priority Sites                         173.194.0.0/24
 5   ;;; YouTube (v13.nonxt1.l.google.com)
     Low Priority Sites                         74.125.171.0/24
 6   ;;; RapidShare.com
     Low Priority Sites                         195.122.131.0/24
 7   ;;; HotFile.com
     Low Priority Sites                         74.120.8.75-74.120.8.77
 8   ;;; Uploading.com
     Low Priority Sites                         88.85.72.9
 9   ;;; MegaUpload.com
     Low Priority Sites                         174.140.154.20-174.140.154.25
10   ;;; rs244tg.rapidshare.com
     Low Priority Sites                         80.231.41.45