From 4beff900d193762204019e02f86ca9d9f7e40244 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 13 Apr 2021 14:08:50 -0400 Subject: [PATCH] dns: remove unused method It was added in 5934f803bfb54c1ceeeb6518398f1b82a726459f but it was never used. --- agent/dns.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/agent/dns.go b/agent/dns.go index 4ddaa179b6..c8017f1aeb 100644 --- a/agent/dns.go +++ b/agent/dns.go @@ -587,12 +587,6 @@ func (d *DNSServer) nameservers(cfg *dnsConfig, maxRecursionLevel int) (ns []dns return } -func (d *DNSServer) invalidQuery(req, resp *dns.Msg, cfg *dnsConfig, qName string) { - d.logger.Warn("QName invalid", "qname", qName) - d.addSOA(cfg, resp) - resp.SetRcode(req, dns.RcodeNameError) -} - func (d *DNSServer) parseDatacenter(labels []string, datacenter *string) bool { switch len(labels) { case 1: