Fixed dns test and added some comments