aboutsummaryrefslogtreecommitdiffstats
path: root/doc/netwatch-dns.md
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-07-05 13:16:47 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-07-05 13:16:47 +0200
commit9853943a365639f675fba0bb9c1d64b7edfd00d7 (patch)
treeb5425c09f5896f760813834f97c816a95e285534 /doc/netwatch-dns.md
parent597277dbe75bb9a87852d46c64b026b189c3528b (diff)
doc/netwatch-dns: giving hostname in comment is not required
Diffstat (limited to 'doc/netwatch-dns.md')
-rw-r--r--doc/netwatch-dns.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/netwatch-dns.md b/doc/netwatch-dns.md
index 798ad92..119937f 100644
--- a/doc/netwatch-dns.md
+++ b/doc/netwatch-dns.md
@@ -29,9 +29,9 @@ Configuration
The DNS and DoH servers to be checked have to be added to netwatch with
specific comment:
- /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="doh, dns, hostname=quad-nine" host=9.9.9.10;
+ /tool/netwatch/add comment="doh" host=1.1.1.1;
+ /tool/netwatch/add comment="dns" host=8.8.8.8;
+ /tool/netwatch/add comment="doh, dns" host=9.9.9.10;
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.
@@ -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:
- /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, ame=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!
Sometimes using just one specific (possibly internal) DNS server may be
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-fallback, hostname=cloudflare-dns" host=1.1.1.1;
+ /tool/netwatch/add comment="dns" host=10.0.0.10;
+ /tool/netwatch/add comment="dns-fallback" host=1.1.1.1;
Tips & Tricks
-------------