[prev in list] [next in list] [prev in thread] [next in thread]
List: unbound-users
Subject: Unbound Run Python Module by Some Condition
From: Yisha Wu via Unbound-users <unbound-users () unbound ! net>
Date: 2015-10-06 18:27:51
Message-ID: CAK3rNwepjqU_V6NU3zKRxrVdnboG90AwGCnJHTE1bex2DBerwA () mail ! gmail ! com
[Download RAW message or body]
Hi,
I have set up a DNS-based application in unbound's python module. So the
module execution order is python -> iterator. However, I only care a
collection of incoming queries and I saved these sites in redis database.
So I wonder if the following logic is possible in unbound:
If(Domain in Redis Database) {
Send to Python Module for resolution;
} else {
Send to Iterator + Cache for resolution;
}
The reason I want to do this is recently we had a unknown dos attack, and
the python module made the cpu usage become about 85%+. And the cpu usage
became normal after I disabled the python module.
Any response is appreciated.
Thank you!
Yisha
[Attachment #3 (text/html)]
<div dir="ltr">Hi,<div><br></div><div>I have set up a DNS-based application in \
unbound's python module. So the module execution order is python -> iterator. \
However, I only care a collection of incoming queries and I saved these sites in \
redis database. So I wonder if the following logic is possible in \
unbound:</div><div><br></div><div><div style="font-size:12.8px">If(Domain in Redis \
Database) {</div><div style="font-size:12.8px"> Send to Python Module for \
resolution;</div><div style="font-size:12.8px">} else {</div><div \
style="font-size:12.8px"> Send to Iterator + Cache for \
resolution;</div><div style="font-size:12.8px">}</div></div><div \
style="font-size:12.8px"><br></div><div style="font-size:12.8px">The reason I want to \
do this is recently we had a unknown dos attack, and the python module made the cpu \
usage become about 85%+. And the cpu usage became normal after I disabled the python \
module.</div><div style="font-size:12.8px"><br></div><div \
style="font-size:12.8px">Any response is appreciated. </div><div \
style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you!</div><div \
style="font-size:12.8px">Yisha</div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic