An IPv4 and IPv6 validation utility for use in scripts