VoIP Cookbook: Test DNS for ENUM Query

From OnnoWiki
Jump to navigation Jump to search

We can use the dig command on the localhost of the DNS server to query the ENUM entries, for example,

$ dig NAPTR 0.0.0.2.5.2.6.e164.id @127.0.0.1

The output would be approximately

; <<>> DiG 9.6.1-P1 <<>> NAPTR 0.0.0.2.5.2.6.e164.id @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10744
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;0.0.0.2.5.2.6.e164.id.		IN	NAPTR

;; ANSWER SECTION:
0.0.0.2.5.2.6.e164.id.	86400	IN	NAPTR	10 100 "u" "E2U+sip" "!^.*$!	sip:2000@192.168.0.3!" .

;; AUTHORITY SECTION:
5.2.6.e164.id.		86400	IN	NS	ns.warnet.co.id.

;; ADDITIONAL SECTION:
ns.warnet.co.id.	86335	IN	A	76.163.126.2

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Nov 24 08:12:11 2009
;; MSG SIZE  rcvd: 137


See Also