c# - Extract hostname from fully qualified domain name (FQDN) -
c# - Extract hostname from fully qualified domain name (FQDN) -
i need implement method extracts hostname fqdn. illustration if hypothetical mail service server mymail.somecollege.edu
want result mymail
, if illegal string (not real fqdn
) need no null
or error code how can extract hostname?- don`t want create parsing of input myself.but rather looking existing api. tried search first dot '.' - substring before hostname. looking existing api
c# host fqdn
Comments
Post a Comment