How to Stop the DNS server and free port 53

Hi Team,
I have PiHole installed as a container on hAP ax³. I want to STOP/DISABLE the default DNS server/service in order to have 53 port of the router free and redirect it to the PiHole container, which will act as DNS server for the network.
Can you please advise how to stop the DNS - I can not find anything on this topic in the manuals.

Thanks,

you can’t… :frowning:

You can either use a NAT rule to redirect to whatever other port the PiHole is running on, or you can give it a separate IP and give that IP to users with DHCP.

I didn’t quite understand the question, or maybe you didn’t understand it…

/ip dns
set allow-remote-requests=no

Thank you for the idea. This is another option I may explore. Is it possible to assign 2 IP addresses from the same LAN subnet ( 192.168.0.1 and 192.168.0.2 for example) on the Mikrotik Router and point the second IP to the container with PiHole(using NAT) and through DHCP set second IP as DNS for all LAN devices ?

Thanks. If I understand correctly the settings,this setting is forcing the router to not serve requests different from its own requests. Do you think this will actually stop the DNS service and free the DNS port(port 53) ?

It’s not strictly necessary to “free port 53” … DST-NAT (which is required to send traffic to different server) is one of early stages of packet processing … only at later stage packet gets delivered to router’s own service if destination address remains same as one of router’s own IP addresses.

Thank You ! DST-NAT indeed works as you mentioned. I added DST-NAT on port 53.