parent
5f88a9146c
commit
9e208e6090
|
@ -138,6 +138,10 @@ func (plugin *PluginCloak) Eval(pluginsState *PluginsState, msg *dns.Msg) error
|
||||||
question := msg.Question[0]
|
question := msg.Question[0]
|
||||||
if question.Qclass != dns.ClassINET ||
|
if question.Qclass != dns.ClassINET ||
|
||||||
(question.Qtype != dns.TypeA && question.Qtype != dns.TypeAAAA && question.Qtype != dns.TypePTR) {
|
(question.Qtype != dns.TypeA && question.Qtype != dns.TypeAAAA && question.Qtype != dns.TypePTR) {
|
||||||
|
if question.Qclass != dns.ClassINET || (question.Qtype != dns.TypeNS || question.Qtype == dns.TypeSOA) {
|
||||||
|
pluginsState.action = PluginsActionReject
|
||||||
|
pluginsState.returnCode = PluginsReturnCodeCloak
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
|
Loading…
Reference in New Issue