/* Mehdi and Jasmine DNS and Echo code 2018 */ /* This is the set of libraries they used, man getaddrinfo shows others */ #include /* */ #include #include /* getaddrinfo will create a socket to work */ #include /* needed for getaddrinfo */ #include /* Provides the core i/o capabilities, also printf */ #include /* For manipulating serveral types of strings */ #include /* For a boolean data type */ #include /* memory alloc, process control, signals, search, sort */ bool check_IP_address(char* addr); char* get_hostname_from_addr(char* addr, char* host, unsigned host_length); char* get_first_addr_from_hostname(char* domain_name);