blocky/resolver
Ben 9f633f18d0
feat: Support defining records by dns zone format (#1360)
* feat: Support zonefile configuration for custom dns mapping

* docs: Update configuration.md

* Rename var to ok

* Linter fixes

* Remove hashes in test describe description

* Implement PR comments; zoneFileMapping -> zone, initialize with proper sizes

* Remove custom CNAME parsing

* Utilize TTL defined in zone file

* Link to wikipedia's example file

* Test to confirm that a relative zone entry without an $ORIGIN returns an error

* Write a test covering the $INCLUDE directive

* Write a test confirming that a dns zone can result in more than 1 RR

* Linting

* fix: Use proper matchers in CustomDNS Zone tests; Update configuration.md description

* Pull in config directory to support relative $INCLUDE

* Added tests to ensure the ability to use both bare filenames as well as relative filenames when using the $INCLUDE directive

* Shorten test description (Linting error)

* Move Assignment of z.RRs to the end of the UnmarshallYAML function

* Moved tests for relative $INCLUDE zones to config_test. Added test case when config param passed to blocky is a directory

* Corrected test case to _actually_ test againt bare file names
2024-02-09 17:28:58 +01:00
..
blocking_resolver.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
blocking_resolver_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
bootstrap.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
bootstrap_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
caching_resolver.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
caching_resolver_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
client_names_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
client_names_resolver_test.go refactor(config): rename `StartStrategyType` to `InitStrategy` 2023-12-05 20:52:46 -05:00
conditional_upstream_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
conditional_upstream_resolver_test.go refactor(config): rename `StartStrategyType` to `InitStrategy` 2023-12-05 20:52:46 -05:00
custom_dns_resolver.go feat: Support defining records by dns zone format (#1360) 2024-02-09 17:28:58 +01:00
custom_dns_resolver_test.go feat: Support defining records by dns zone format (#1360) 2024-02-09 17:28:58 +01:00
ecs_resolver.go Bugfix in ECS forward (#1290) 2023-12-03 14:29:31 -05:00
ecs_resolver_test.go Bugfix in ECS forward (#1290) 2023-12-03 14:29:31 -05:00
ede_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
ede_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
filtering_resolver.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
filtering_resolver_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
fqdn_only_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
fqdn_only_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
hosts_file_resolver.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
hosts_file_resolver_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
metrics_resolver.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
metrics_resolver_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
mock_udp_upstream_server.go feat: add `upstreams.init.strategy` 2023-12-05 20:52:46 -05:00
mocks_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
noop_resolver.go fix: add `Resolver.String` so logs don't use Go's default format 2024-01-18 10:47:04 -05:00
noop_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
parallel_best_resolver.go fix: add `Resolver.String` so logs don't use Go's default format 2024-01-18 10:47:04 -05:00
parallel_best_resolver_test.go refactor(config): rename `StartStrategyType` to `InitStrategy` 2023-12-05 20:52:46 -05:00
query_logging_resolver.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
query_logging_resolver_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
resolver.go fix: add `Resolver.String` so logs don't use Go's default format 2024-01-18 10:47:04 -05:00
resolver_suite_test.go refactor(tests): use a `const timeout` to simplify race avoidance 2023-12-01 15:53:11 -05:00
resolver_test.go refactor(resolvers): make `Bootstrap` implement `Resolver` 2023-12-05 20:52:46 -05:00
rewriter_resolver.go fix(rewrite): support the case where upstream doesn't echo the question 2023-12-20 10:14:17 -05:00
rewriter_resolver_test.go fix(rewrite): support the case where upstream doesn't echo the question 2023-12-20 10:14:17 -05:00
strict_resolver.go fix: add `Resolver.String` so logs don't use Go's default format 2024-01-18 10:47:04 -05:00
strict_resolver_test.go refactor(config): rename `StartStrategyType` to `InitStrategy` 2023-12-05 20:52:46 -05:00
sudn_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
sudn_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
upstream_resolver.go fix: don't use upstream `ServFail` responses besides forwarding them 2024-01-27 17:25:33 -05:00
upstream_resolver_test.go fix: don't use upstream `ServFail` responses besides forwarding them 2024-01-27 17:25:33 -05:00
upstream_tree_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
upstream_tree_resolver_test.go refactor(config): rename `StartStrategyType` to `InitStrategy` 2023-12-05 20:52:46 -05:00