[Dnsmasq-discuss] SRV forwarding is not working

Simon Kelley simon at thekelleys.org.uk
Sun Mar 17 18:15:00 GMT 2013


On 17/03/13 11:19, Michael Strelnikov wrote:
> I have a configured a dnsmasq to forward all queries in form of
> "*.mycompany.com <http://mycompany.com>" to server 10.0.0.1
> <http://10.0.0.1>:
>
> server=/mycompany.com/10.0.0.1 <http://mycompany.com/10.0.0.1>
>
> But when I'm trying to get SRV "_ldap._tcp.dc._msdcs.mycompany.com
> <http://msdcs.mycompany.com>" I receive:
>
>  > host -t SRV _ldap._tcp.dc._msdcs.mycompany.com
> <http://msdcs.mycompany.com>. 192.168.5.20
> ;; Truncated, retrying in TCP mode.
> Using domain server:
> Name: 192.168.5.20
> Address: 192.168.5.20#53
> Aliases:
>
> Host _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com>.
> not found: 3(NXDOMAIN)
>
> The direct query works fine:
>  > host -t SRV _ldap._tcp.dc._msdcs.mycompany.com
> <http://msdcs.mycompany.com>. 10.0.0.1
> ;; Truncated, retrying in TCP mode.
> Using domain server:
> Name: 10.0.0.1
> Address: 10.0.0.1#53
> Aliases:
>
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server1.mycompany.com <http://server1.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server2.mycompany.com <http://server2.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server3.mycompany.com <http://server3.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server4.mycompany.com <http://server4.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server5.mycompany.com <http://server5.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server6.mycompany.com <http://server6.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server7.mycompany.com <http://server7.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server8.mycompany.com <http://server8.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server9.mycompany.com <http://server9.mycompany.com>.
>
>
> And more. If I change query type from SRV to ANY (to the dnsmasq) I
> receive correct answer:
>
>  > host -t ANY _ldap._tcp.dc._msdcs.mycompany.com
> <http://msdcs.mycompany.com>. 192.168.5.20
> ;; Truncated, retrying in TCP mode.
> Using domain server:
> Name: 192.168.5.20
> Address: 192.168.5.20#53
> Aliases:
>
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server1.mycompany.com <http://server1.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server2.mycompany.com <http://server2.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server3.mycompany.com <http://server3.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server4.mycompany.com <http://server4.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server5.mycompany.com <http://server5.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server6.mycompany.com <http://server6.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server7.mycompany.com <http://server7.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server8.mycompany.com <http://server8.mycompany.com>.
> _ldap._tcp.dc._msdcs.mycompany.com <http://msdcs.mycompany.com> has SRV
> record 0 100 389 server9.mycompany.com <http://server9.mycompany.com>.
>
>
>
> What is wrong?
>
I don't know what's wrong. There are two things you could do to help us 
diagnose this:

1) Tell use what version of dnsmasq you're using.

2) Set log-queries in you configuration, repeat the tests above, and 
post what gets logged.


Cheers,

Simon.


> P.S. I have "filterwin2k" commented.
>
That's good.



>



More information about the Dnsmasq-discuss mailing list