Always lowercase incoming DNS query

This commit is contained in:
William Tisäter 2014-07-23 10:28:54 +02:00
parent 93509f755e
commit eab2cbc1ef

View file

@ -248,7 +248,7 @@ func (d *DNSServer) dispatch(network string, req, resp *dns.Msg) {
datacenter := d.agent.config.Datacenter datacenter := d.agent.config.Datacenter
// Get the QName without the domain suffix // 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) qName = strings.TrimSuffix(qName, d.domain)
// Split into the label parts // Split into the label parts