Discussion:
[Dnsmasq-discuss] Syntax for srv-records
Guido Schmidt
2018-01-16 12:44:29 UTC
Permalink
I'm trying to set up some srv-records for sip. These are the records I
have in bind syntax:

;; RECORDS: rr
_sip._tcp IN SRV 30 10 5060 sipx2
_sip._udp IN SRV 30 10 5060 sipx2
_sips._tcp IN SRV 30 10 5061 sipx2
_sip._tls IN SRV 30 10 5061 sipx2
_sip._tcp.rr IN SRV 30 10 5070 sipx2
_sip._tcp.rr.sipx2 IN SRV 10 10 5070 sipx2


I successfully managed to translate the first four to

srv-host=_sip._tcp,sipx2.example.org,5060,20,10
srv-host=_sip._udp,sipx2.example.org,5060,20,10
srv-host=_sips._tcp,sipx2.example.org,5061,20,10
srv-host=_sip._tls,sipx2.example.org,5061,20,10


But the last two won't work:

srv-host="_sip._tcp.rr",sipx2.example.org,5070,20,10
srv-host="_sip._tcp.rr.sipx2",sipx2.example.org,5070,20,10

Can someone enlighten me what would be the right syntax?

Guido
Guido Schmidt
2018-01-16 16:51:15 UTC
Permalink
Post by Guido Schmidt
srv-host="_sip._tcp.rr",sipx2.example.org,5070,20,10
srv-host="_sip._tcp.rr.sipx2",sipx2.example.org,5070,20,10
there is " added
Yeah, I forgot to mention, the " were one of my attempts to make it
work. At first I tried it without them. Which didn't work.

Guido
Simon Kelley
2018-01-18 21:28:14 UTC
Permalink
My guess is that you need to add the domain to the last two.

eg _sip._tcp gets the domain (as specified to dnsmasq by the domain
keyword) added automatically, so assuming

domain=guido.org
srv-host=_sip._tcp,sipx2.example.org,5060,20,10

You'll get a SRV records called
_sip._tcp.guido.org

once you start adding anything else, dnsmasq assumes you're specifying
the domain, so


srv-host="_sip._tcp.rr",sipx2.example.org,5070,20,10

gives you a record called _sip._tcp.rr, but you probably want a record
called _sip._tcp.rr.guido.org, so you need to specify that completely

srv-host="_sip._tcp.rr.guido.org",sipx2.example.org,5070,20,10


Cheers,

Simon.
Post by Guido Schmidt
I'm trying to set up some srv-records for sip. These are the records I
;; RECORDS: rr
_sip._tcp        IN    SRV    30 10 5060 sipx2
_sip._udp        IN    SRV    30 10 5060 sipx2
_sips._tcp        IN    SRV    30 10 5061 sipx2
_sip._tls        IN    SRV    30 10 5061 sipx2
_sip._tcp.rr        IN    SRV    30 10 5070 sipx2
_sip._tcp.rr.sipx2    IN    SRV    10 10 5070 sipx2
I successfully managed to translate the first four to
srv-host=_sip._tcp,sipx2.example.org,5060,20,10
srv-host=_sip._udp,sipx2.example.org,5060,20,10
srv-host=_sips._tcp,sipx2.example.org,5061,20,10
srv-host=_sip._tls,sipx2.example.org,5061,20,10
srv-host="_sip._tcp.rr",sipx2.example.org,5070,20,10
srv-host="_sip._tcp.rr.sipx2",sipx2.example.org,5070,20,10
Can someone enlighten me what would be the right syntax?
Guido
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Guido Schmidt
2018-01-23 10:50:05 UTC
Permalink
Post by Simon Kelley
My guess is that you need to add the domain to the last two.
eg _sip._tcp gets the domain (as specified to dnsmasq by the domain
keyword) added automatically, so assuming
domain=guido.org
srv-host=_sip._tcp,sipx2.example.org,5060,20,10
You'll get a SRV records called
_sip._tcp.guido.org
once you start adding anything else, dnsmasq assumes you're specifying
the domain, so
srv-host="_sip._tcp.rr",sipx2.example.org,5070,20,10
gives you a record called _sip._tcp.rr, but you probably want a record
called _sip._tcp.rr.guido.org, so you need to specify that completely
srv-host="_sip._tcp.rr.guido.org",sipx2.example.org,5070,20,10
Simon,

thanks, problem solved! Would have never guessed that.

Guido
Post by Simon Kelley
Post by Guido Schmidt
I'm trying to set up some srv-records for sip. These are the records I
;; RECORDS: rr
_sip._tcp        IN    SRV    30 10 5060 sipx2
_sip._udp        IN    SRV    30 10 5060 sipx2
_sips._tcp        IN    SRV    30 10 5061 sipx2
_sip._tls        IN    SRV    30 10 5061 sipx2
_sip._tcp.rr        IN    SRV    30 10 5070 sipx2
_sip._tcp.rr.sipx2    IN    SRV    10 10 5070 sipx2
I successfully managed to translate the first four to
srv-host=_sip._tcp,sipx2.example.org,5060,20,10
srv-host=_sip._udp,sipx2.example.org,5060,20,10
srv-host=_sips._tcp,sipx2.example.org,5061,20,10
srv-host=_sip._tls,sipx2.example.org,5061,20,10
srv-host="_sip._tcp.rr",sipx2.example.org,5070,20,10
srv-host="_sip._tcp.rr.sipx2",sipx2.example.org,5070,20,10
Can someone enlighten me what would be the right syntax?
Guido
Continue reading on narkive:
Loading...