modified dns query script