Using a DNS ENUM Request
GET/CNAM DNS ENUM Request
Requires an IP Authentication profile to be set up under Telco Data, with type CNAM and mechanism ENUM.
The DNS query should be sent to data.telnyx.com. Take the full,
E.164-formatted number that you wish to dip, reverse its digits, and
separate the digits with periods. Then attach the .e164.arpa suffix.
For example, to dip the number +13129457420, the query would be
0.2.4.7.5.4.9.2.1.3.1.e164.arpa. Here is a sample request and
response:
; <<>> DiG 9.9.5-9+deb8u4-Debian <<>> @data.telnyx.com -t NAPTR 0.2.4.7.5.4.9.2.1.3.e164.arpa
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38360
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;0.2.4.7.5.4.9.2.1.3.e164.arpa. IN NAPTR
;; ANSWER SECTION:
0.2.4.7.5.4.9.2.1.3.e164.arpa. 30 IN NAPTR 10 100 "u" "E2U+pstndata:cnam" "!^.*$!pstndata:cnam/+13129457420\;\;charset=us-ascii,TELNYX%20LLC!" .
;; Query time: 40 msec
;; SERVER: 10.1.129.12#53(10.1.129.12)
;; WHEN: Thu Jan 05 16:36:32 CST 2017
;; MSG SIZE rcvd: 178
Some devices do not use the E.164-formatted number when constructing the query. For this reason, we also accept queries based on 10-digit NANP numbers, as follows:
$ dig @data.telnyx.com -t NAPTR 0.2.4.7.5.4.9.2.1.3.e164.arpa
Responses
301:
SIP 302 redirect