How to setup reverse dns for a range of IPs?

WildCard

Verified User
Joined
Oct 27, 2005
Messages
12
We have a small wireless ISP, and run DA on our webserver.

I received a new class c of IPs that I wanted to setup in DA to do reverse dns for customers - but am unsure what to put in the 4 fields:

domain name:
IP address:
name server 1:
name server 2:

I am guessing it will be something like:
c.b.a.in-addr.arpa.
<ip address? I entered a.b.c. but didn't work.. need I put the router IP a.b.c.d?>
ns1.mynameserver.com
ns2.mynameserver.com

but each time I try, I get an error of :

Unable to create zone:
Details
You must provide a valid domain, ip, ns1 and ns2
 
Hello,

What I did to get rDNS working for me, was to create a new domain within DirectAdmin called c.b.a.in-addr.arpa (no period at the end here), filling in the information requested including the server's main IP and the name servers you want to use. When the domain has been created, delete all of the records and then create new records like the following:

Code:
[U]Name[/U]                      [U]Type[/U]      [U]Value[/U]
c.b.a.in-addr.arpa.       NS        ns1.nameserver.com.
c.b.a.in-addr.arpa.       NS        ns2.nameserver.com.
1.c.b.a.in-addr.arpa.     PTR       www.domain1.com.
2.c.b.a.in-addr.arpa.     PTR       www.domain2.com.
3.c.b.a.in-addr.arpa.     PTR       www.domain3.com.
...

Replace www.domain1.com through www.domain3.com, etc. with the name you want returned whenever a rDNS query is run against the IP. Add a new PTR record for each IP that should have an rDNS entry.

I hope this helps, if you have any questions, let me know. Thanks.
 
Thanks, that did it. Might have been due to my use of the period after the c.b.a.in-addr.arpa in the domain name field.

Thanks again!
-WC-
 
When adding domains in DirectAdmin, there is no need to enter the period at the end of the domain name. The period is only required when adding DNS entries for the zone itself. Glad this worked for you. :)
 
Back
Top