changed method into net-dns from resolv