[Pdns-users] problem with naptr answer

Eli.Birova malkata.ve6tica at dir.bg
Fri Nov 30 15:56:18 UTC 2007


Hi All,

I am using 2.9.20 on Debian with gpgsql backend. We are trying to set up
pdns to be used for enum lookup from an SBC.
The problem is that the SBC is expecting to receive the NAPTR answer in the
following form:
100 10 "u" "E2U+sip" "!^.*$!sip:7817654321 at 192.168.200.130!"

and the answer comes as follows:
host -v -t NAPTR 6.5.4.3.7.7.7.2.1.2.1.e164.arpa  10.120.160.41
Trying "6.5.4.3.7.7.7.2.1.2.1.e164.arpa"
Using domain server:
Name: 10.120.160.41
Address: 10.120.160.41#53
Aliases:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40020
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;6.5.4.3.7.7.7.2.1.2.1.e164.arpa. IN        NAPTR

;; ANSWER SECTION:
6.5.4.3.7.7.7.2.1.2.1.e164.arpa. 3600 IN NAPTR 100 10 "u" "E2U+sip" ""
!^.*\$!sip:+12127773456\@10.120.150.250!.

The problem comes from the empty quotes in the DNS answer which makes the
SBC take an empty string for the number and the enum lookup fails.

The data inserted in the database is the following:

INSERT INTO "public"."records" ("id", "domain_id", "name", "type",
"content", "ttl", "prio", "change_date")
VALUES 
  (23, 2, '6.5.4.3.7.7.7.2.1.2.1.e164.arpa', 'NAPTR', '100 10 \"u\"
\"E2U+sip\"  \"!^.*$!sip:+12127773456 at 10.120.150.250!\".', 3600, 1, 0);

I am new at power dns and do not know how to make it put the regex part of
the content within the corresponding place in the answer in order to be
parsed correctly from the client side and would be gratefull if someone can
help!

Thank you in advance,
Eli
-- 
View this message in context: http://www.nabble.com/problem-with-naptr-answer-tf4917905.html#a14075309
Sent from the PowerDNS mailing list archive at Nabble.com.



More information about the Pdns-users mailing list