To be honest, I do not really understand what this code does, or rather what it is used for. But it still looks like an error to me, when a for loop runs over the count of authority responses but then walks over the array of answers. Since I guess that we are actually interested in the answers here, I suggest that the for loop boundary is changed to the count of answer responses.
Since this is code from the original import, it looks like this functionality never worked (no NS records) or only by chance.
To be honest, I do not really understand what this code does, or rather what it is used for. But it still looks like an error to me, when a
for
loop runs over the count of authority responses but then walks over the array of answers. Since I guess that we are actually interested in the answers here, I suggest that the for loop boundary is changed to the count of answer responses.Since this is code from the original import, it looks like this functionality never worked (no NS records) or only by chance.