bugfix for dns_remote_resolve