测试域名:函数:int gethostname(char *name, size_t len); int getdomainname(char *name,size_t len); struct hostent *gethostbyaddr(const char *name); struct hostent *gethostbyname(const char *name);