[Pdns-users] reverse dns creation
Augie Schwer
augie.schwer at gmail.com
Wed Feb 10 17:20:51 UTC 2010
Here's an example from a production DB :
mysql> select * from domains where name like '%.in-addr.arpa' limit 1;
+-------+----------------------+--------+------------+--------+-----------------+---------+---------------------+
| id | name | master | last_check | type |
notified_serial | account | change_date |
+-------+----------------------+--------+------------+--------+-----------------+---------+---------------------+
| 17168 | 0.0.127.IN-ADDR.ARPA | | 1194994265 | NATIVE |
NULL | NULL | 0000-00-00 00:00:00 |
+-------+----------------------+--------+------------+--------+-----------------+---------+---------------------+
1 row in set (0.00 sec)
mysql> select * from records where domain_id = 17168;
+------------+-----------+------------------------+------+-----------------------------------------------------------------------+--------+------+---------------------+
| id | domain_id | name | type | content
| ttl |
prio | change_date |
+------------+-----------+------------------------+------+-----------------------------------------------------------------------+--------+------+---------------------+
| 1621130347 | 17168 | 0.0.127.in-addr.arpa | SOA |
ns1.sonic.net. hostmaster.sonic.net. 2003061002 3600 300 1209600 3600
| 259200 | 0 | 2009-09-10 14:21:40 |
| 1621130348 | 17168 | 0.0.127.in-addr.arpa | NS |
a.auth-ns.sonic.net
| 259200 | 0 | 2009-09-10 14:21:40 |
| 1621130349 | 17168 | 0.0.127.in-addr.arpa | NS |
b.auth-ns.sonic.net
| 259200 | 0 | 2009-09-10 14:21:40 |
| 1621130350 | 17168 | 1.0.0.127.in-addr.arpa | PTR | localhost.
| 259200 |
0 | 2009-09-10 14:21:40 |
| 8498683330 | 17168 | 0.0.127.in-addr.arpa | NS |
c.auth-ns.sonic.net
| 259200 | 0 | 2009-09-10 14:21:40 |
+------------+-----------+------------------------+------+-----------------------------------------------------------------------+--------+------+---------------------+
5 rows in set (0.00 sec)
--Augie
On Tue, Feb 9, 2010 at 7:46 PM, Liong Kok Foo <kokfoo.liong at innity.com> wrote:
> Hi,
>
> Can someone guide me on setting up reverse dns for powerdns? The docs does
> not mention about it.
>
> I have a previous bind for reverse dns as below:
>
> in named.conf file:-
> zone "96.87.222.111.in-addr.arpa." {
> type master;
> file "/var/named/96.87.222.111.in-addr.arpa.";
> allow-update { 111.222.221.50; };
> };
>
>
> in 96.87.222.111.in-addr.arpa. file:-
> $TTL 3D
> @ IN SOA mydomain.com. hostmaster.mydomain.com. (
> 0909200901 ; Serial
> 10800 ; Refresh
> 1800 ; Retry
> 3600000 ; Expire
> 86400) ; Minimum TTL
> NS ns1.mydomain.com.
> NS ns2.mydomain.com.
>
> ;
> ; Servers
> ;
>
> 117 IN PTR mail.mydomain.com.sg.
>
>
> How should I setup this in powerdns?
>
> Is this even correct? Aren't reverse dns supposed to have only 3 subnets and
> then last one defined in the PTR record?
>
> Please help.
> Thanks.
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
--
Augie Schwer - Augie at Schwer.us - http://schwer.us
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072
More information about the Pdns-users
mailing list