# Nginx-http-rdns module

**URL:** <https://www.ruby-forum.com/t/nginx-http-rdns-module/246293>\
**Category:** NGINX\
**Created:** [September 27, 2013, 2:21pm UTC](https://www.ruby-forum.com/t/nginx-http-rdns-module/246293 "2013-09-27T14:21:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [September 27, 2013, 2:21pm UTC](https://www.ruby-forum.com/t/nginx-http-rdns-module/246293/1 "2013-09-27T14:21:20Z")

</div>

Hi guys!

Our small Russian company ([flant.com](http://flant.com)) is pleased to announce new module  
called nginx-http-rdns.

As you can see from its name, the main feature of this module is making  
reverse DNS lookups to get DNS name of client’s IP address.

Features:

- usual rDNS lookup (saving result in $rdns\_hostname variable) [rdns  
on];
- “double lookup”: rDNS to get the name and DNS to get the IP address  
back [rdns double];
- rewrite module support (“rdns” can be used inside “if” blocks);
- simple access control to allow/deny connections from given DNS names  
[rdns\_allow & rdns\_deny].

We use this module in production for a long time so it should be pretty  
stable.

Source code, docs (and your forks? :-)) are at GitHub:

> **[GitHub - flant/nginx-http-rdns: Nginx HTTP rDNS module](https://github.com/flant/nginx-http-rdns)**
>
> Nginx HTTP rDNS module. Contribute to flant/nginx-http-rdns development by creating an account on GitHub.

The documentation based on our README file is here:  
[http://wiki.nginx.org/HttpRdnsModule](http://wiki.nginx.org/HttpRdnsModule)

P.S. We have Russian documentation as well:

> **[GitHub - flant/nginx-http-rdns: Nginx HTTP rDNS module](https://github.com/flant/nginx-http-rdns)**
>
> Nginx HTTP rDNS module. Contribute to flant/nginx-http-rdns development by creating an account on GitHub.

–  
Dmitry Shurupov,  
CSJC Flant

> **[Flant – DevOps & Kubernetes, 24x7 support, outsourcing](https://flant.com)**
>
> site.page.main.description

+7 (495) 721-10-27

---

<div class="post-metadata">

**Author:** ![Dmitry\_Shurupov](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@Dmitry\_Shurupov](https://www.ruby-forum.com/u/Dmitry_Shurupov)\
**Post date:** [September 27, 2013, 6:08pm UTC](https://www.ruby-forum.com/t/nginx-http-rdns-module/246293/2 "2013-09-27T18:08:44Z")

</div>

Here’s a fix for a typo;

ngx\_http\_rdns\_module.c  
-l709  
static void dns\_handler(ngx\_resolver\_ctx\_t \* rctx) {;  
+l709  
static void dns\_handler(ngx\_resolver\_ctx\_t \* rctx) {

Posted at Nginx Forum:

> **[Re: \[ANNOUNCE\] nginx-http-rdns module](https://forum.nginx.org/read.php?2,243191,243213#msg-243213)**
>
> Hi guys! Our small Russian company (flant.com) is pleased to announce new module called nginx-http-rdns. As you can see from its name, the main feature of this module is making reverse DNS lookups to get DNS name of client's IP address. Fea

---

<div class="post-metadata">

**Author:** ![Dmitry\_Shurupov](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@Dmitry\_Shurupov](https://www.ruby-forum.com/u/Dmitry_Shurupov)\
**Post date:** [September 30, 2013, 8:18am UTC](https://www.ruby-forum.com/t/nginx-http-rdns-module/246293/3 "2013-09-30T08:18:09Z")

</div>

Thank you, it’s merged:

> <https://github.com/flant/nginx-http-rdns/commit/8c2ef68b1767590aab131cd5c3a2fd1955f0b3c6>

27.09.2013 20:08, itpp2012 пишет:
