mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
Always lowercase incoming DNS query
This commit is contained in:
parent
e0ba9a48a7
commit
e4de221078
@ -248,7 +248,7 @@ func (d *DNSServer) dispatch(network string, req, resp *dns.Msg) {
|
||||
datacenter := d.agent.config.Datacenter
|
||||
|
||||
// Get the QName without the domain suffix
|
||||
qName := dns.Fqdn(req.Question[0].Name)
|
||||
qName := strings.ToLower(dns.Fqdn(req.Question[0].Name))
|
||||
qName = strings.TrimSuffix(qName, d.domain)
|
||||
|
||||
// Split into the label parts
|
||||
|
Loading…
x
Reference in New Issue
Block a user