mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-08-30 06:29:37 +02:00
Add Google DoH script
This commit is contained in:
parent
7ab9c9d776
commit
6db1542577
1 changed files with 22 additions and 0 deletions
22
doh-scripts/google.rsc
Normal file
22
doh-scripts/google.rsc
Normal file
|
@ -0,0 +1,22 @@
|
|||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue