Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ncode committed Jan 22, 2025
1 parent 7574a9a commit 2082e0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agent/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import (
"encoding/hex"
"errors"
"fmt"
agentdns "github.com/hashicorp/consul/agent/dns"
"math"
"net"
"regexp"
"strings"
"sync/atomic"
"time"

agentdns "github.com/hashicorp/consul/agent/dns"

"github.com/armon/go-metrics"
"github.com/armon/go-radix"
"github.com/hashicorp/go-hclog"
Expand Down Expand Up @@ -804,6 +805,7 @@ func (d *DNSServer) dispatch(remoteAddr net.Addr, req, resp *dns.Msg, cfg *dnsRe
// Handle potential QNAME minimization queries
// Resolvers using QNAME minimization will send queries with partial names
// RFC 9156: Allow queries for partial domain components when they look like QNAME minimization
// eg. "service.dc.consul" or "service.consul"
if len(queryParts) == 0 && (queryKind != "") {
// Return empty non-referral response (RFC 9156 Section 3)
resp.Answer = []dns.RR{}
Expand Down

0 comments on commit 2082e0b

Please sign in to comment.