mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
doc/netwatch-dns: RouterOS v7 path syntax
This commit is contained in:
parent
2ed561d13b
commit
9ef2718c6d
1 changed files with 8 additions and 8 deletions
|
@ -21,7 +21,7 @@ Just install the script:
|
||||||
|
|
||||||
Then add a scheduler to run it periodically:
|
Then add a scheduler to run it periodically:
|
||||||
|
|
||||||
/ system scheduler add interval=1m name=netwatch-dns on-event="/ system script run netwatch-dns;" start-time=startup;
|
/system/scheduler/add interval=1m name=netwatch-dns on-event="/system/script/run netwatch-dns;" start-time=startup;
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
|
@ -29,9 +29,9 @@ Configuration
|
||||||
The DNS and DoH servers to be checked have to be added to netwatch with
|
The DNS and DoH servers to be checked have to be added to netwatch with
|
||||||
specific comment:
|
specific comment:
|
||||||
|
|
||||||
/ tool netwatch add comment="doh, hostname=cloudflare-dns" host=1.1.1.1;
|
/tool/netwatch/add comment="doh, hostname=cloudflare-dns" host=1.1.1.1;
|
||||||
/ tool netwatch add comment="dns, hostname=google-dns" host=8.8.8.8;
|
/tool/netwatch/add comment="dns, hostname=google-dns" host=8.8.8.8;
|
||||||
/ tool netwatch add comment="doh, dns, hostname=quad-nine" host=9.9.9.10;
|
/tool/netwatch/add comment="doh, dns, hostname=quad-nine" host=9.9.9.10;
|
||||||
|
|
||||||
This will configure *cloudflare-dns* for DoH (`https://1.1.1.1/dnsquery`), and
|
This will configure *cloudflare-dns* for DoH (`https://1.1.1.1/dnsquery`), and
|
||||||
*google-dns* and *quad-nine* for regular DNS (`8.8.8.8,9.9.9.10`) if up.
|
*google-dns* and *quad-nine* for regular DNS (`8.8.8.8,9.9.9.10`) if up.
|
||||||
|
@ -39,15 +39,15 @@ If *cloudflare-dns* is down the script will fall back to *quad-nine* for DoH.
|
||||||
|
|
||||||
Giving a specific query url for DoH is possible:
|
Giving a specific query url for DoH is possible:
|
||||||
|
|
||||||
/ tool netwatch add comment="doh, hostname=nextdns, doh-url=https://dns.nextdns.io/dns-query" host=199.247.16.158;
|
/tool/netwatch/add comment="doh, hostname=nextdns, doh-url=https://dns.nextdns.io/dns-query" host=199.247.16.158;
|
||||||
|
|
||||||
Note that using a name in DoH url may introduce a chicken-and-egg issue!
|
Note that using a name in DoH url may introduce a chicken-and-egg issue!
|
||||||
|
|
||||||
Sometimes using just one specific (possibly internal) DNS server may be
|
Sometimes using just one specific (possibly internal) DNS server may be
|
||||||
desired, with fallback in case it fails. This is possible as well:
|
desired, with fallback in case it fails. This is possible as well:
|
||||||
|
|
||||||
/ tool netwatch add comment="dns, hostname=pi-hole" host=10.0.0.10;
|
/tool/netwatch/add comment="dns, hostname=pi-hole" host=10.0.0.10;
|
||||||
/ tool netwatch add comment="dns-fallback, hostname=cloudflare-dns" host=1.1.1.1;
|
/tool/netwatch/add comment="dns-fallback, hostname=cloudflare-dns" host=1.1.1.1;
|
||||||
|
|
||||||
Tips & Tricks
|
Tips & Tricks
|
||||||
-------------
|
-------------
|
||||||
|
@ -57,7 +57,7 @@ Tips & Tricks
|
||||||
Netwatch entries can be created to work with both - this script and
|
Netwatch entries can be created to work with both - this script and
|
||||||
[netwatch-notify](netwatch-notify.md). Just give options for both:
|
[netwatch-notify](netwatch-notify.md). Just give options for both:
|
||||||
|
|
||||||
/ tool netwatch add comment="doh, notify, hostname=cloudflare-dns" host=1.1.1.1;
|
/tool/netwatch/add comment="doh, notify, hostname=cloudflare-dns" host=1.1.1.1;
|
||||||
|
|
||||||
Also this allows to update host address, see option `resolve`.
|
Also this allows to update host address, see option `resolve`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue