[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!"

and the answer comes as follows:
host -v -t NAPTR
Trying ""
Using domain server:

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

; IN        NAPTR

;; ANSWER SECTION: 3600 IN NAPTR 100 10 "u" "E2U+sip" ""

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")
  (23, 2, '', 'NAPTR', '100 10 \"u\"
\"E2U+sip\"  \"!^.*$!sip:+12127773456 at!\".', 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

Thank you in advance,
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