Implement IPv4 and FQDN validation per #15

This does not yet validate the global TLD but should otherwise be ready for testing.