some small fixes / cleanups for dns detector