I have configured simple DNS redirection, which force all client to use Mikrotik as DNS server regardless what DNS the client is using. It works fine on Mikrotik 6.49, but after upgrading to 7.20.4, the DNS redirection stops working.
First, verify that Allow Remote Requests is turned on under IP -> DNS.
Then create an interface list (LAN for example, if not already exists) and make sure your LAN interfaces (bridges and VLAN interfaces) are members of that interface list.
Modify the DSTNAT rule above and add the condition in-interface-list=LAN (adjust with the name of the list you created above).
Make a copy of the rule, in the copy, change protocol=tcp and save it, so that there are two redirect rules.
If you have a non standard firewall configuration (not with defconf rules), make sure you added action=acceptrules on the chain=input for traffic coming from those interfaces, in-interface-list=LAN (adjust with the name of the list you created above) and dst-port=53, TCP and UDP. Move the new rules above other action=drop rules of the chain=input.
Must be looking at rextendeds posts........... Was it your intention to redirect the internet bots DNS too....
You should at least indicate that this DNS handling is for LAN clients only in-interface-list=LAN
Then you should post the rest of your (with sensitive information censored) configuration export. Because in ROS 7 it still works as I described above. If it doesn't work on your device, then the cause might be located in other parts of your configuration.
The rules was placed on the top, so it should be processed first before processing anything else. Therefore, I was not include other parts because it was not relevant.
I am just wondering if the configuration for DNS redirection is different between ROS 6 and ROS 7, because I noticed it is major upgrade
The redirect rules, with in-interface / in-interface-list restriction, with copies for both UDP and TCP, still work fine in the latest RouterOS 7 version. I am using them on my guest VLANs.
The problem is probably with other parts of your configuration.
What is disturbing is the OP coming here asking for advice, CGGX gives very good advice ( far better than I ) and yet the OP says, No I dont need your advice, I only need to show this............... Arrogance or ignorance your pick.
More likely ignorance and by that I mean the OP does not realize that the RoS config is very much interrelated and life and success is not just found in the firewall rules.
We are interested evidence and facts, thus the config needs to be posted. Otherwise all we have is opinion, which is not worth that much.
The to ports is redundant and your redirecting the packets to the router which is the same as saying redirect................ Why I like yours better is because I never know what redirect uses for the dns gateway LOL
I will try to test the same rule I had with ROS 6 to factory reset on ROS 7 mikrotik to see if it is working.
I just want to confirm that nothing major change on DNS redirection rule between ROS 6 and ROS 7.
The one I noticed that has major change so far, is OSPF config, I had to re-configure again in order to make it to work on ROS 7, plus the configuration is different from ROS 6