Community discussions

MikroTik App
 
forjameel
just joined
Topic Author
Posts: 5
Joined: Thu Dec 22, 2016 6:48 am

DNS redirect based on DOMAIN

Thu Oct 11, 2018 8:47 pm

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
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: DNS redirect based on DOMAIN

Thu Oct 11, 2018 9:33 pm

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).

Who is online

Users browsing this forum: 0xAA55, Majestic-12 [Bot] and 50 guests