feat: per-suffix conditional forwarding rules (#82) #84
Reference in New Issue
Block a user
Delete Branch "feat/config-forwarding-rules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
[[forwarding]]config section for per-suffix conditional forwarding rules. Users can explicitly route domain suffixes (including reverse-DNS zones like168.192.in-addr.arpa) to specific upstreams.suffixaccepts a string or array of strings, so multiple suffixes can share one upstream without repeating[[forwarding]]blocks.scutil --dns, Linux search domains) via first-match semantics inmatch_forwarding_rule.parse_upstream_addr.make_rule()to useForwardingRule::new()constructor andparse_upstream_addr, fixing a latent IPv6 parsing bug where bare::1would produce invalid::1:53instead of[::1]:53.Test plan
make all— fmt, clippy (-D warnings), audit, build, 222 tests (12 new forwarding tests)Closes #82.