add support for dns

@cjellick 
From here to line 244, can this be moved to a common method so that each test doesn't have to repeat this boilerplate