Skip to content

Commit 2d6e740

Browse files
committed
Improve examples
1 parent f8cd9cb commit 2d6e740

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

dnscrypt-proxy/example-allowed-names.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## =example.com | allows example.com but not *.example.com
1414
## [a-z0-9\-_]*.example.com | allows *.example.com but not example.com
1515
## *sex* | matches any name containing that substring
16-
## ads[0-9]* | matches "ads" followed by one or more digits
16+
## ads[0-9]* | matches "ads" followed by a digit and anything else
1717
## ads*.example* | *, ? and [] can be used anywhere, but prefixes/suffixes are faster
1818

1919

dnscrypt-proxy/example-blocked-names.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## =example.com | blocks example.com but not *.example.com
1414
## [a-z0-9\-_]*.example.com | blocks *.example.com but not example.com
1515
## *sex* | matches any name containing that substring
16-
## ads[0-9]* | matches "ads" followed by one or more digits
16+
## ads[0-9]* | matches "ads" followed by a digit and anything else
1717
## ads*.example* | *, ? and [] can be used anywhere, but prefixes/suffixes are faster
1818

1919
ad.*

dnscrypt-proxy/example-dnscrypt-proxy.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,6 @@ format = 'tsv'
690690
## Allowed IP lists support the same patterns as IP blocklists
691691
## If an IP response matches an allowed entry, the corresponding session
692692
## will bypass IP filters.
693-
##
694-
## Time-based rules are also supported to make some websites only accessible at specific times of the day.
695693

696694
[allowed_ips]
697695

@@ -763,7 +761,7 @@ format = 'tsv'
763761
## expiring after `cache_ttl` hours.
764762
##
765763
## `refresh_delay` controls how often to download updates during normal operation.
766-
## Must be in the [24..168] interval (1 day to 1 week).
764+
## Must be in the [25..169] interval; values outside that range are clamped.
767765
##
768766
## `cache_ttl` controls how old the cache can be at startup before requiring
769767
## an immediate download. Defaults to 168 hours if not set.
@@ -937,7 +935,7 @@ skip_incompatible = false
937935
## retrieved via a relay, try getting them directly. Actual queries
938936
## will then always go through relays.
939937

940-
# direct_cert_fallback = false
938+
# direct_cert_fallback = true
941939

942940

943941
###############################################################################
@@ -1035,8 +1033,8 @@ enable_query_log = true
10351033

10361034
## Privacy level for the monitoring UI
10371035
## 0: show all details including client IPs
1038-
## 1: anonymize client IPs (default)
1039-
## 2: aggregate data only (no individual queries or domains shown)
1036+
## 1: anonymize client IPs
1037+
## 2: aggregate data only (no individual queries or domains shown) (default)
10401038
privacy_level = 1
10411039

10421040
## Maximum number of recent query log entries to keep in memory

dnscrypt-proxy/example-forwarding-rules.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
## The general format is:
77
## <domain> <server address>[:port] [, <server address>[:port]...]
88
## IPv6 addresses can be specified by enclosing the address in square brackets.
9+
##
10+
## When multiple plain server addresses are listed, one of them is picked at
11+
## random for every query. Keywords such as $DHCP or $BOOTSTRAP, on the other
12+
## hand, act as fallbacks: they are only tried, in order, after the entries
13+
## listed before them have failed.
914

1015
## The following keywords can also be used instead of a server address:
1116
## $BOOTSTRAP to use the default bootstrap resolvers

0 commit comments

Comments
 (0)