plugin/forward: add hostname resolution support for TO endpoints (#5646) (#7923)

Signed-off-by: Dmytro Alieksieiev <1865999+dragoangel@users.noreply.github.com>
This commit is contained in:
Dmytro Alieksieiev
2026-05-31 04:36:01 +02:00
committed by GitHub
parent 33c71b1554
commit ce0e5a6f39
6 changed files with 920 additions and 9 deletions

View File

@@ -57,6 +57,10 @@ type Forward struct {
failoverRcodes []int
maxConnectAttempts uint32
// Hostname resolution fields
resolver []string // custom resolver IPs for hostname TO resolution
toEntries []toEntry // ordered TO entries preserving config order
opts proxyPkg.Options // also here for testing
// ErrLimitExceeded indicates that a query was rejected because the number of concurrent queries has exceeded