AAAA filter: Reject instead of sending an empty response

Empty responses can cause issues with CNAME records
This commit is contained in:
Frank Denis 2018-01-20 20:37:02 +01:00
parent f33b8a964a
commit aceb8b30f7
1 changed files with 1 additions and 6 deletions

View File

@ -33,11 +33,6 @@ func (plugin *PluginBlockIPv6) Eval(pluginsState *PluginsState, msg *dns.Msg) er
if question.Qclass != dns.ClassINET || question.Qtype != dns.TypeAAAA {
return nil
}
synth, err := EmptyResponseFromMessage(msg)
if err != nil {
return err
}
pluginsState.synthResponse = synth
pluginsState.action = PluginsActionSynth
pluginsState.action = PluginsActionReject
return nil
}