find type of hostname