add support for dns

@cjellick 
ty