Changed iterator class to only iterate over the srv records once