chophostdomain
if (chophostdomain(hname, host, domain) == -1) {
extern int chophostdomain(char *string, char *host, char *domain);