Skip to content

Commit 6d086d2

Browse files
committed
Make sure to send an empty reply to AAAA queries when IPv6 is disabled
Forwarding the request to the defaultHandler could result in returning NXDOMAIN, which can break resolution of IPv4 addresses. Signed-off-by: Jan Dubois <[email protected]>
1 parent 129bbc8 commit 6d086d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/hostagent/dns/dns.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func (h *Handler) handleQuery(w dns.ResponseWriter, req *dns.Msg) {
8282
switch q.Qtype {
8383
case dns.TypeAAAA:
8484
if !h.IPv6 {
85+
handled = true
8586
break
8687
}
8788
fallthrough

0 commit comments

Comments
 (0)