Routing google to specific WAN

HI everybody
i ve 2 WANs and i wanna the google to work only in one of them , i m using RB2011 and i did this

chain=prerouting action=add-dst-to-address-list address-list=google address-list-timeout=0s
in-interface=LAN connection-mark=no-mark content=www,google.com log=no log-prefix=“”

chain=prerouting action=mark-connection new-connection-mark=google passthrough=yes
dst-address-list=google in-interface=LAN connection-mark=no-mark log=no log-prefix=“”

chain=prerouting action=mark-routing new-routing-mark=WAN2 passthrough=no in-interface=LAN
connection-mark=google log=no log-prefix=“”

but it is not working , sometimes google still work on WAN1 and sometimes it is not working at all

This is not going to work. Certainly not when you make typing errors like in your example, but that is probably because it is not google you want to route but some other domain you do not want to mention, and this config is not cut-and-paste.

However, what you are doing here is affecting traffic that contains the string www.google.com somewhere, which is going to fail because:

  1. the string may occur in other traffic, like this discussion.
  2. the real traffic to google is almost all encrypted and the router does not see the string www.google.com at all.

no i wanna do it to google , i ve two WANs one of them blocked google so i wanna the other WAN work only on goolge