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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -