in reply to Re^15: scandns.pl
in thread scandns.pl

No errors, though several warnings. I really don't believe you're using the code you posted.

Again - using my fix instead of yours in sub validip, the program immediately exits with invalid address, as it ought.