blocky/config
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
..
migration refactor(config): allow more configuration for `upstreams` 2023-08-01 15:01:40 -04:00
blocking.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
blocking_test.go BlockingConfig -> Blocking 2023-11-21 21:35:41 -05:00
bytes_source.go feat: support multiple hosts files 2023-07-07 09:16:20 -04:00
bytes_source_enum.go feat: support multiple hosts files 2023-07-07 09:16:20 -04:00
caching.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
caching_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
client_lookup.go ClientLookupConfig -> ClientLookup 2023-11-21 21:35:41 -05:00
client_lookup_test.go ClientLookupConfig -> ClientLookup 2023-11-21 21:35:41 -05:00
conditional_upstream.go ConditionalUpstreamConfig -> ConditionalUpstream 2023-11-21 21:35:41 -05:00
conditional_upstream_test.go ConditionalUpstreamConfig -> ConditionalUpstream 2023-11-21 21:35:41 -05:00
config.go feat: Support defining records by dns zone format (#1360) 2024-02-09 17:28:58 +01:00
config_enum.go refactor(config): rename `StartStrategyType` to `InitStrategy` 2023-12-05 20:52:46 -05:00
config_suite_test.go fix(tests): properly silence log output (#1259) 2023-11-19 17:51:49 -05:00
config_test.go feat: Support defining records by dns zone format (#1360) 2024-02-09 17:28:58 +01:00
custom_dns.go feat: Support defining records by dns zone format (#1360) 2024-02-09 17:28:58 +01:00
custom_dns_test.go feat: Support defining records by dns zone format (#1360) 2024-02-09 17:28:58 +01:00
duration.go refactor(bootstrap): replace `Dialer.Timeout` with a `context` deadline 2023-12-05 20:52:46 -05:00
duration_test.go fix: duration checks to take into account values can be negative 2023-07-07 09:16:20 -04:00
ecs.go symbol name refactoring (#1263) 2023-11-21 06:33:38 +01:00
ecs_test.go style(tests): use `ContainElements` where possible 2023-12-01 15:53:11 -05:00
filtering.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
filtering_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
hosts_file.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
hosts_file_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
metrics.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
metrics_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
qtype_set.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
qtype_set_test.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
query_log.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
query_log_test.go Refactoring/config struct names (#1315) 2023-12-20 15:38:33 -05:00
redis.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
redis_test.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
rewriter.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
rewriter_test.go style(tests): use `ContainElements` where possible 2023-12-01 15:53:11 -05:00
sudn.go symbol name refactoring (#1263) 2023-11-21 06:33:38 +01:00
sudn_test.go symbol name refactoring (#1263) 2023-11-21 06:33:38 +01:00
upstream.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
upstreams.go refactor(config): ensure `upstreams.timeout` is always valid 2023-12-05 20:52:46 -05:00
upstreams_test.go refactor(config): ensure `upstreams.timeout` is always valid 2023-12-05 20:52:46 -05:00