Don't block '.'
This commit is contained in:
parent
5d396d5f52
commit
279d5619e3
|
@ -40,7 +40,7 @@ func (plugin *PluginBlockUnqualified) Eval(pluginsState *PluginsState, msg *dns.
|
|||
}
|
||||
qName := questions[0].Name
|
||||
idx := strings.IndexByte(qName, '.')
|
||||
if idx == -1 || idx+1 != len(qName) {
|
||||
if idx == -1 || (idx == 0 || idx+1 != len(qName)) {
|
||||
return nil
|
||||
}
|
||||
synth := EmptyResponseFromMessage(msg)
|
||||
|
|
Loading…
Reference in New Issue