added 2 new functions

added is_ip and is_fqdn for alt_name check