To set up DoH (DNS over HTTPS) with Cloudflare on a Mikrotik router, follow these steps:
1. Log in to the Mikrotik router's web interface.
2. Click on the "IP" menu in the left sidebar, and then click on the "DNS" submenu.
3. Under the "General" tab, you will see a list of DNS servers that are currently configured on the router. To add a new DNS server, click the "Plus (+)" button.
4. In the "Address" field, enter "1.1.1.1" (without quotes). This is the IP address of Cloudflare's DoH server.
5. Check the "Use DoH" box.
6. In the "DoH URI" field, enter "https://cloudflare-dns.com/dns-query" (without quotes). This is the URI of Cloudflare's DoH server.
7. If you want to make this DNS server the primary server that the router uses, check the "Primary DNS" box.
8. Click the "Apply" button to save the changes.
That's it! You have successfully set up DoH with Cloudflare on your Mikrotik router.
Note: DoH is only supported on Mikrotik routers with RouterOS version 6.47 or higher.