Shortcut filters for the root zone

This commit is contained in:
Frank Denis 2018-01-20 13:30:19 +01:00
parent 066db6a080
commit 0fe21b2d57
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ func (plugin *PluginBlockName) Eval(pluginsState *PluginsState, msg *dns.Msg) er
return nil
}
qName := strings.ToLower(StripTrailingDot(questions[0].Name))
if len(qName) < 2 {
return nil
}
revQname := StringReverse(qName)
reject, reason := false, ""
if !reject {