How do I configure Cloudflare DNS over HTTPS (DoH) on a Mikrotik router?

Question

Grade: Education Subject: Support
How do I configure Cloudflare DNS over HTTPS (DoH) on a Mikrotik router?
Asked by:
72 Viewed 72 Answers

Answer (72)

Best Answer
(529)
To configure Cloudflare DoH on a Mikrotik, you'll need RouterOS v6.44 or later. Navigate to IP > DNS. Enable 'Allow Remote Requests'. Then, under 'General Settings', set 'Use DNS Cache' to 'yes'. Next, add a new static DNS entry: Name: `cloudflare-doh`, Address: `1.1.1.1`, Allow Remote Requests: `yes`, DNS Cache: `yes`. Repeat for `1.0.0.1`. Finally, in IP > DNS, set 'Servers' to `cloudflare-doh`. For optimal security, consider using a script to automatically update the DoH server addresses if Cloudflare changes them.