http://www.perlmonks.org?node_id=95835


in reply to (code) Resolve list of DNS names

Check out this recent thread on validating IP addresses. It's not quite as simple as you might think.