[Dnsmasq-discuss] Problems with SRV Queries

Edson 4lists at gmail.com
Thu Mar 1 16:32:52 GMT 2007


 

 

> -----Original Message-----

> From: Simon Kelley [mailto:simon at thekelleys.org.uk]

> Sent: quinta-feira, 1 de março de 2007 11:21

> To: Edson

> Cc: dnsmasq-discuss at lists.thekelleys.org.uk

> Subject: Re: [Dnsmasq-discuss] Problems with SRV Queries

> 

> Edson wrote:

> > Hi, All...

> >

> > I'm facing some really wierd situation here...

> > I have a Grandstream that depends on a SRV querie to resolve the SIP

> server

> > address. When I define a SRV clause in the DNSMasq config file, and

> > configure the Grandstream to use it as DNS server, it works smoothly,

> the

> > registration is successful. But if I don't, I see the querie being

> forwarded

> > to the DNS upstream server, but the answer never hits the Grandestream.

> 

> Small gotcha here: if you are relying on --log-queries for this data,

> then you won't see the reply logged, only replies to A and AAAA queries

> get logged.

 

I'm getting such logs:

Mar  1 12:53:27 repolho dnsmasq[25013]: query[SRV] _sip._udp.alta.com.br
from 192.168.100.26

Mar  1 12:53:27 repolho dnsmasq[25013]: config _sip._udp.alta.com.br is
<NODATA>

 

> 

> > And

> > if I configure the Grandstream to use DNS upstream server directly (the

> same

> > that DNSMasq points to) it works.

> >

> 

> This should work: dnsmasq will forward queries of any type:

> Can you use tcpdump/ethereal/wireshark to get some packet dumps.

 

Yeap.... the packets that appear on the EXTERNAL interface (PPPoE) and the
packets that appear on the INTERNAL interface (where the Grandstream is
attached), are:

 

On the INTERNAL:

13:00:54.096729 IP 192.168.100.26.26789 > 192.168.100.1.domain:  11213+ SRV?
_sip._udp.alta.com.br. (39)

13:00:54.098221 IP 192.168.100.1.domain > 192.168.100.26.26789:  11213*
0/0/0 (39)

13:00:56.596491 IP 192.168.100.26.26789 > 192.168.100.1.domain:  11214+ A?
alta.com.br. (29)

13:00:56.761629 IP 192.168.100.1.domain > 192.168.100.26.26789:  11214 0/1/0
(94)

 

On the EXTERNAL:

13:00:56.599380 IP 201.25.215.89.1053 > 201.10.120.3.53:  48957+ A?
alta.com.br. (29)

13:00:56.599966 IP 201.25.215.89.1053 > 201.10.1.2.53:  48957+ A?
alta.com.br. (29)

13:00:56.760071 IP 201.10.120.3.53 > 201.25.215.89.1053:  48957 0/1/0 (94)

13:00:56.789314 IP 201.10.1.2.53 > 201.25.215.89.1053:  48957 0/1/0 (94)

 

As You can see, the querie is present on the INTERNAL, but not on the
EXTERNAL.

 

For simplicity I reduce the DNSmasq configuration to:

log-queries

bogus-priv

filterwin2k

listen-address=127.0.0.1

listen-address=172.27.248.1

listen-address=192.168.100.1

resolv-file=/etc/ppp/resolv.conf

user=dnsmasq

group=dialout

 

Edson.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20070301/a98061c2/attachment-0001.htm


More information about the Dnsmasq-discuss mailing list