aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/health.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/forward/health.go')
-rw-r--r--plugin/forward/health.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/forward/health.go b/plugin/forward/health.go
index fcd3df200..f4cfab834 100644
--- a/plugin/forward/health.go
+++ b/plugin/forward/health.go
@@ -16,6 +16,7 @@ type HealthChecker interface {
SetTLSConfig(*tls.Config)
SetRecursionDesired(bool)
GetRecursionDesired() bool
+ SetTCPTransport()
}
// dnsHc is a health checker for a DNS endpoint (DNS, and DoT).
@@ -57,6 +58,10 @@ func (h *dnsHc) GetRecursionDesired() bool {
return h.recursionDesired
}
+func (h *dnsHc) SetTCPTransport() {
+ h.c.Net = "tcp"
+}
+
// For HC we send to . IN NS +[no]rec message to the upstream. Dial timeouts and empty
// replies are considered fails, basically anything else constitutes a healthy upstream.