#include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> int main(int argc, char const *argv[]) { struct addrinfo hints; struct addrinfo *res, *tmp; char host[256]; memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_family ...