2023-08-25 11:24:56 +05:30
The following DoH services can be automated for now...
2023-06-29 08:31:49 +05:30
2023-08-25 11:24:56 +05:30
- [Cloudflare ](https://github.com/pothi/mikrotik-scripts/blob/main/doh-scripts/cloudflare.rsc )
- [Google ](https://github.com/pothi/mikrotik-scripts/blob/main/doh-scripts/google.rsc )
- [NextDNS ](https://github.com/pothi/mikrotik-scripts/blob/main/doh-scripts/nextdns.rsc )
2025-06-02 06:47:02 +05:30
Incompatible / buggy implementation...
2023-08-25 11:24:56 +05:30
- [Quad9 ](https://github.com/pothi/mikrotik-scripts/blob/main/doh-scripts/quad9.rsc )
2023-06-29 08:31:49 +05:30
2025-06-04 07:10:32 +05:30
Since Router OS v7.19... built-in CA certificates can be used with `/certificate/settings/set builtin-trust-anchors=trusted`
2023-08-25 11:24:56 +05:30
Or you may use the [generic script ](https://github.com/pothi/mikrotik-scripts/blob/main/doh-scripts/generic.rsc ).
2023-06-29 08:31:49 +05:30
2025-06-02 06:47:02 +05:30
Officially incompatible DoH servers... https://help.mikrotik.com/docs/spaces/ROS/pages/37748767/DNS#DNS -Knowncompatible/incompatibleDoHservices
2023-08-25 11:24:56 +05:30
Relevant thread in MikroTik forums... https://forum.mikrotik.com/viewtopic.php?f=2& t=160243#p799274
2023-06-29 08:31:49 +05:30
2023-08-28 06:51:12 +05:30
Remember that DoH depends on the correct time on your MikroTik device. So, make sure that the NTP client is configured and is working. The MikroTik's Cloud NTP client service requires a working DNS that in turn requires a working NTP client. So, please don't depend on MikroTik's Cloud NTP sync service.
2023-06-29 08:31:49 +05:30
2022-12-20 12:20:49 +05:30
Root CA certificates that we can use...
2023-06-29 08:31:49 +05:30
- https://www.digicert.com/kb/digicert-root-certificates.htm (Download DigiCert Global Root CA)
- https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
- works **only** for 1.1.1.1 DoH
2023-08-25 11:24:56 +05:30
The following don't work for unknown reason...
2023-06-29 08:31:49 +05:30
2022-12-20 12:20:49 +05:30
- https://pki.goog/repository/
- https://support.globalsign.com/ca-certificates/root-certificates/globalsign-root-certificates
2023-06-29 08:31:49 +05:30
- https://www.amazontrust.com/repository/
2022-12-20 12:20:49 +05:30
Or download most (if not all) root CA certificates from https://curl.se/ca/cacert.pem
Recommended - https://pki.goog/repo/certs/gtsr4.pem (validity: 2038)
2023-08-25 11:24:56 +05:30
NextDNS recommends https://curl.se/ca/cacert.pem too.