Welcome! Log In Create A New Profile

Advanced

Re: fake googlebots / nginx-http-rdns

September 26, 2016 03:56AM
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@nginx.org
Reply To: nginx@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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: fake googlebots / nginx-http-rdns

A. Schulze September 26, 2016 03:34AM

Re: fake googlebots / nginx-http-rdns

gariac September 26, 2016 03:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready