Implemented a lamdba helper to the dns classes (one of them so far at least)

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>