fixed bugs related to different dns query lengths