i ran the test, and i see no problems: 12/07 22:07# grep app /etc/hosts 12/07 22:07# time ./gethostbyname.bin webapp02c webapp02c webapp06c webapp06c roapp02c roapp02c 10.51.23.17 webapp02c.prod.romeovoid.com 10.51.23.17 webapp02c.prod.romeovoid.com 10.195.76.80 webapp06c.prod.romeovoid.com 10.195.76.80 webapp06c.prod.romeovoid.com 10.96.23.87 roapp02c.prod.romeovoid.com 10.by groknaut - Nginx Mailing List - English
maybe this one's better: 12/07 06:19# cat gethostbyname.c #include <stdio.h> #include <netdb.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> int main(int argc, char *argv[]) { if (argc < 2) { fprintf(stderr, "usage: %s hostname\n", argv[0]); return 1; } // skip 0 because that is theby groknaut - Nginx Mailing List - English
12/07 05:31# cat gethostbyname.c #include <stdio.h> #include <netdb.h> int main(int argc, char *argv[]) { if (argc != 2) { printf("usage: %s \n", argv[0]); return 1; } struct hostent *lh = gethostbyname(argv[1]); if (lh) { puts(lh->h_name); return 0; } else { herror("gethostbyname");by groknaut - Nginx Mailing List - English
hello -- nginx will not reload on some of our proxy servers, but does on others. all are running the same version: nginx/1.0.15. the reload fails with error: 26903#0: host not found in upstream "webappNNx:8080" in /etc/nginx/upstream.conf:N the issue appears to be related to nginx's ability to resolve a hostname. our proxy servers use BIND servers that we run ourselves. the Bby groknaut - Nginx Mailing List - English
unfortunately at this time our site relies on nginx_upstream_module. not sure if/when i'll have time to rebuild sans those modules and try to repro. in the meantime, i'm going to add configuration to allow nginx to dump core, and see if the module author, yaoweibin, has any insight. of course if you can offer help i'd love to have it. thanksby groknaut - Nginx Mailing List - English
and i forgot to include nginx -V .. 10/19 19:12# nginx -V nginx: nginx version: nginx/1.0.5 nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50) nginx: TLS SNI support disabled nginx: configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/ngiby groknaut - Nginx Mailing List - English
hello, after trying to reload nginx after making a config change, the reload didn't show that the new config had taken affect. i then issued a restart and what happened was, the nginx parent died, yet the nginx worker kept running serving requests. any help? this appears to happen after the nginx parent has been running for "a while". we're running nginx 1.0.5 with the followingby groknaut - Nginx Mailing List - English