Nope, you don't know how to validate an email address. Even if you think you'd get the domain part right, fuggeddabout the local part. Seriously.| www.netmeister.org
The common definition of a 'valid hostname' is often reduced to a simple regular expression, but as the saying goes: 'Now you have two problems.' Because hostnames are DNS labels and those... well, it's the DNS. All bets are off.| www.netmeister.org
For historical reasons, inet_aton(3) accepts IPv4 addresses in several silly formats. Let's see what we can do with those...| www.netmeister.org