While playing around with getting host entries to work with ldap, I found that my previous code for using gethostbyname was not running clean on puias6. Here is an updated version
<br /> #include <stdio.h><br /> #include <netdb.h><br /> #include <stdlib.h><br /> #include <sys/socket.h><br /> #include <netinet/in.h><br /> #include <arpa/inet.h></p> <p>int main(int argc, char **argv) {<br /> int i;