linux DNS

使用gethostbyname()执行DNS过程 #include <netdb.h> #include <sys/socket.h> #include <arpa/inet.h> #include <iostream> int main(int argc,char* argv[]){ struct hostent* h; char buf[64]; for(int i = 0;i < a
相关文章
相关标签/搜索