DNS redirect based on DOMAIN

Hi,

I like mikrotik OS too much. it has a lot of features and works in almost every environment. i wanted your help to redirect a dns query to a specific dns server when the query is about a specific domain “example123.com” but all other queries go to default DNS server.
i think this is possible via regex i guess.

thanks

So far it’s only the old L7 hack. You can skip the packet mark and use layer7-protocol directly with dstnat rule.

No proper solution currently exists in RouterOS (Feature Request: Conditional DNS Forwarding).