mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-30 01:34:29 +02:00
22 lines
580 B
Text
22 lines
580 B
Text
# Verify the connection at TODO
|
|
|
|
# disable doh (temporarily)
|
|
|
|
/ip dns set verify-doh-cert=no
|
|
|
|
/tool fetch url=https://pki.goog/repo/certs/gtsr1.pem once
|
|
:delay 5s
|
|
/certificate remove [find~gtsr1]
|
|
/certificate import file-name=gtsr1.pem passphrase=""
|
|
/file remove gtsr1.pem
|
|
|
|
/ip dns static add address=8.8.8.8 name=dns.google
|
|
/ip dns static add address=8.8.4.4 name=dns.google
|
|
/ip dns set use-doh-server=https://dns.google/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
|