I faced with wired situation, I set NAPTR, SRV on Cloudflare free account and get a bug.
Claudflare return an error when I’m trying to request my NAPTR record
Here is what I set:
SRV _sips._tcp.domain.net 10 50 5061 s1.domain.net
SRV _sip._tcp.domain.net 10 50 5060 s1.domain.net
SRV _sip._udp.domain.net 10 50 5060 s1.domain.net
NAPTR domain.net 10 100 “S” “SIPS+D2T” “” _sip._tcp.domain.net
NAPTR domain.net 10 100 “S” “SIP+D2T” “” _sip._tcp.domain.net
NAPTR domain.net 10 100 “S” “SIP+D2U” “” _sip._udp.domain.net
host -t NAPTR domain.net 1.1.1.1
;; Got bad packet: syntax error
215 bytes
71 e8 81 80 00 01 00 04 00 00 00 00 01 31 03 73 q…
69 70 06 75 73 76 6f 69 70 03 6e 65 74 00 00 23 domain.net…#
00 01 c0 0c 00 05 00 01 00 00 00 65 00 02 c0 0e …e…
c0 0e 00 23 00 01 00 00 01 19 00 2b 00 0a 00 64 …#…+…d
01 73 07 53 49 50 2b 44 32 55 02 22 22 04 5f 73 .s.SIP+D2U.“”._s
69 70 04 5f 75 64 70 03 73 69 70 06 75 73 76 6f ip._udp.doma
69 70 03 6e 65 74 00 c0 30 00 23 00 01 00 00 01 in.net…0.#…
19 00 2d 00 0a 00 64 01 73 08 53 49 50 53 2b 44 …-…d.s.SIPS+D
32 54 02 22 22 05 5f 73 69 70 73 04 5f 74 63 70 2T.“”._sips._tcp
03 73 69 70 06 75 73 76 6f 69 70 03 6e 65 74 00 .domain.net.
c0 30 00 23 00 01 00 00 01 19 00 2b 00 0a 00 64 .0.#…+…d
01 73 07 53 49 50 2b 44 32 54 02 22 22 04 5f 73 .s.SIP+D2T.“”._s
69 70 04 5f 74 63 70 03 73 69 70 06 75 73 76 6f ip._tcp.doma
69 70 03 6e 65 74 00 in.net.
I set identical records to other server (not Cloudflare) and DNS return me right value
Also, when I export DNS record it’s miss some parameters:
Exported code:
sip.domain.net. 300 IN NAPTR 10 100 “” “SIP+D2T” “” _sip._tcp.sip.domain.net
What’s RFC expected:
example.com NAPTR 10 100 “S” “SIP+D2U” “” _sip._udp.example.com.