Update conf.c to getaddrinfo