simplified dns detector code. replaced options dictionary non-sense with
**kwargs