adding test code of net-dns