fake googlebots / nginx-http-rdns

lists at lazygranch.com lists at lazygranch.com
Mon Sep 26 07:55:26 UTC 2016


I doubt I could patch source. (I know my limits.) But reverse DNS seems very useful. Someone should fix the module.

  Original Message  
From: A. Schulze
Sent: Monday, September 26, 2016 12:33 AM
To: nginx at nginx.org
Reply To: nginx at nginx.org
Subject: Re: fake googlebots / nginx-http-rdns


lists:

> Nginx has a reverse DNS module:
> https://github.com/flant/nginx-http-rdns

for an older version from 20140411 I have a patch. That version works 
without problems.

--- nginx-1.10.1.orig/nginx-http-rdns-20140411/ngx_http_rdns_module.c
+++ nginx-1.10.1/nginx-http-rdns-20140411/ngx_http_rdns_module.c
@@ -214,7 +214,7 @@ static char * merge_loc_conf(ngx_conf_t
}
#endif

- if (conf->conf.enabled && ((core_loc_cf->resolver == NULL) || 
(core_loc_cf->resolver->udp_connections.nelts == 0))) {
+ if (conf->conf.enabled && ((core_loc_cf->resolver == NULL) || 
(core_loc_cf->resolver->connections.nelts == 0))) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "no core resolver 
defined for rdns");
return NGX_CONF_ERROR;
}

> I see it has a 10.1 issue:
> https://github.com/flant/nginx-http-rdns/issues/8
not sure if my patch addresses that issue...

Andreas


_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list