LAN with two routers .COM domains redirect

Hello,

I have a question regarding my setup. I have LAN with range 172.16.6.0/24. In this lan i have two mikrotiks rbxxx routers. One is on ip 252, the other is on ip 254. 254 is default router connected to ISP #1 and is currently handling all traffic to internet. I also have this one on 252, which is connected to another ISP provider, but doesnt do any thing atm.
I would like to do L7 filtering in this way. I want all traffic to go through router 254 like its doing now, except all the domains with .com TLD. Dont ask why? I would just like to do it. So I would like my router to redirect all requests for .com TLD, to go through 252, while everything else should go over default 254 router. I really have no clue how to achieve this.

Thanks in advance.