Dns support

@purplefox please review