[Pdns-users] pdns 2.9.20 and wrong SRV RR answer
Derrik Pates
demon at devrandom.net
Sat Jun 24 13:50:22 UTC 2006
Daniel Nauck wrote:
> Powerdns returns a wrong result of a SRV RR in Version 2.9.20 (Debian
> static x86)
>
> Datebasecontent:
> mysql> SELECT * FROM records WHERE domain_id=653 AND type="srv";
> +------+-----------+--------------------------------+------+-------------------------------+------+------+-------------+
> | id | domain_id | name | type | content
> | ttl | prio | change_date |
> +------+-----------+--------------------------------+------+-------------------------------+------+------+-------------+
> | 6529 | 653 | _xmpp-server._tcp.srv-test.com | SRV | 10 0 5269
> jabber.srv-test.com | 3600 | NULL | NULL |
> | 6530 | 653 | _xmpp-client._tcp.srv-test.com | SRV | 10 0 5222
> jabber.srv-test.com | 3600 | NULL | NULL |
> +------+-----------+--------------------------------+------+-------------------------------+------+------+-------------+
> 2 rows in set (0.00 sec)
Your SRV records are incorrectly structured; see below ('control' is a
custom field):
+-------+-----------+------------------------------+------+---------------------------------+-------+------+-------------+---------+
| id | domain_id | name | type | content
| ttl | prio | change_date | control |
+-------+-----------+------------------------------+------+---------------------------------+-------+------+-------------+---------+
| 11244 | 416 | _sip._udp.voxel.net | SRV | 0 5060
voice1.lga1.us.voxel.net | 3600 | 0 | 1150136463 | normal |
| 11408 | 416 | _sip._tcp.voxel.net | SRV | 0 5060
voice1.lga1.us.voxel.net | 3600 | 0 | 1150136462 | normal |
You don't set the PRIO value in the 'content' column, you should be
setting it in the 'prio' field of the 'records' table. PowerDNS is
trying to do the right thing based on the defined structure.
--
Derrik Pates
demon at devrandom.net
More information about the Pdns-users
mailing list