pothi.mikrotik-scripts/doh-scripts/cloudflare.rsc

20 lines
565 B
Text
Raw Normal View History

2022-12-20 11:52:43 +05:30
# Verify the connection at https://1.1.1.1/help
2023-06-29 08:31:49 +05:30
# disable doh (temporarily)
/ip dns set verify-doh-cert=no
/tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
2023-08-28 07:02:45 +05:30
/certificate remove [find name~"DigiCertGlobalRootCA.crt.pem"]
2023-06-29 08:31:49 +05:30
/certificate import file-name=DigiCertGlobalRootCA.crt.pem passphrase=""
/file remove DigiCertGlobalRootCA.crt.pem
2022-12-20 11:52:43 +05:30
/ip dns set use-doh-server=https://1.1.1.1/dns-query verify-doh-cert=yes
# optional steps
/ip dns set servers=""
/ip dhcp-client set use-peer-dns=no [find]
2023-06-29 08:31:49 +05:30
# flush existing cache
/ip dns cache flush