[Pdns-users] ENUM NAPTR queries

Alexis Fidalgo alzrck at gmail.com
Mon Feb 6 12:49:24 UTC 2023

Hello all, good morning.

Im working developing a http app to be used with remote backend, this app uses a mongodb backend in order to read Local Number Portability records (around 400MM) queried to powerdns auth server using NAPTR type.

Everything works ok but im facing a kind of no go now. Up to now, the pdns auth server is getting around 20/30 qps because is under test. Next step is to deploy the pdns auth inside a docker swarm, set 10/15 replicas and start receiving 1500qps and grow up to 20/25k qps.

a normal query is like this 

 alz at nuc  ~  dig @localhost NAPTR

; <<>> DiG 9.16.33-Debian <<>> @localhost NAPTR
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21129
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

; EDNS: version: 0, flags:; udp: 1232

;; ANSWER SECTION: 1 IN	NAPTR	100 10 "u" "E2U+SIP" "!^.*$!sip:+2399007086 at ims.mnc790.mcc313.3gppnetwork.org!" . 1 IN	NAPTR	100 10 "u" "E2U+pstn:tel" "!^.*$! tel:2399007086;npdi;rn=2324832232!" .

;; Query time: 1507 msec
;; WHEN: Mon Feb 06 09:34:15 -03 2023
;; MSG SIZE  rcvd: 205

in the remote backend i can see the query 
{"method": "lookup", "parameters": {"local": "", "qname": "", "qtype": "ANY", "real-remote": "", "remote": "", "zone-id": -1}}


{"result":[{"qtype":"NAPTR","qname":"","content":"100 10 \"u\" \"E2U+SIP\" \"!^.*$!sip:+2399007086 at ims.mnc790.mcc313.3gppnetwork.org!\" .","ttl":1},{"qtype":"NAPTR","qname":"","content":"100 10 \"u\" \"E2U+pstn:tel\" \"!^.*$! tel:2399007086;npdi <tel:2399007086;npdi>;rn=2324832232!\" .","ttl":1}]}

but after that i can see 
{"method": "lookup", "parameters": {"local": "", "qname": "", "qtype": "ANY", "real-remote": "", "remote": "", "zone-id": -1}}
answered: {“result": false}

{"method": "lookup", "parameters": {"local": "", "qname": "", "qtype": "ANY", "real-remote": "", "remote": "", "zone-id": -1}}

and so on.

I dont need all those queries, if the first one (the complete phone number which is 2399007086) has no porting information, that’s it, no more queries. i can’t afford x10 queries on the database with no use at all.

All are phone calls in setup stage (at least trying to) and time is important (beside processing, etc)

How can i stop this kind of loop recursion?

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20230206/9ec5167a/attachment.htm>

More information about the Pdns-users mailing list