forked from hickory-dns/hickory-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified get_wildcards. Re-added missing blocklist test files.
- Loading branch information
1 parent
b3369c9
commit 0af7df2
Showing
4 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This is a test list for the blocklist authority. It should not be used for production purposes. | ||
baddomain.com | ||
foo.com. #Inline Comment | ||
*.foo.com | ||
example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
malware.com. | ||
malc0de.com |
42 changes: 42 additions & 0 deletions
42
tests/test-data/test_configs/example_chained_recursor.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## Default zones, these should be present on all nameservers, except in rare | ||
## configuration cases | ||
[[zones]] | ||
zone = "localhost" | ||
zone_type = "Primary" | ||
file = "default/localhost.zone" | ||
|
||
[[zones]] | ||
zone = "0.0.127.in-addr.arpa" | ||
zone_type = "Primary" | ||
file = "default/127.0.0.1.zone" | ||
|
||
[[zones]] | ||
zone = "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" | ||
zone_type = "Primary" | ||
file = "default/ipv6_1.zone" | ||
|
||
[[zones]] | ||
zone = "255.in-addr.arpa" | ||
zone_type = "Primary" | ||
file = "default/255.zone" | ||
|
||
[[zones]] | ||
zone = "0.in-addr.arpa" | ||
zone_type = "Primary" | ||
file = "default/0.zone" | ||
|
||
[[zones]] | ||
## zone: this is the ORIGIN of the zone, aka the base name, '.' is implied on the end | ||
## specifying something other than '.' here, will restrict this recursor to only queries | ||
## where the search name is a subzone of the name, e.g. if zone is "example.com.", then | ||
## queries for "www.example.com" or "example.com" would be recursively queried. | ||
zone = "." | ||
|
||
## zone_type: Primary, Secondary, Hint, Forward | ||
zone_type = "Hint" | ||
|
||
## remember the port, defaults: 53 for Udp & Tcp, 853 for Tls and 443 for Https. | ||
## Tls and/or Https require features dns-over-tls and/or dns-over-https | ||
|
||
## Example chained recursor configuration with two block lists. | ||
stores = [{ type = "blocklist", wildcard_match = true, min_wildcard_depth = 2, lists = ["default/blocklist.txt", "default/blocklist2.txt"]}, { type = "recursor", roots = "default/root.zone"}] |