通过域名解析动态IP地址, 如花生壳.
hostent* host = gethostbyname("saiksy.gicp.net");char* pszIP = (char *)inet_ntoa(*(struct in_addr *)(host->h_addr));