Update DoH scripts

This commit is contained in:
Pothi Kalimuthu 2023-06-29 08:31:49 +05:30
parent 75bec31c42
commit 7ab9c9d776
No known key found for this signature in database
GPG key ID: 08202A469C2D0E06
2 changed files with 29 additions and 4 deletions

View file

@ -1,11 +1,19 @@
# Verify the connection at https://1.1.1.1/help
/tool fetch url=https://curl.se/ca/cacert.pem
/certificate remove [find name~"cacert.pem"]
/certificate import file-name=cacert.pem passphrase=""
# disable doh (temporarily)
/ip dns set verify-doh-cert=no
/tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
/certificate remove [find]
/certificate import file-name=DigiCertGlobalRootCA.crt.pem passphrase=""
/file remove DigiCertGlobalRootCA.crt.pem
/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]
# flush existing cache
/ip dns cache flush