I have a configured a dnsmasq to forward all queries in form of "*.<a href="http://mycompany.com">mycompany.com</a>" to server <a href="http://10.0.0.1">10.0.0.1</a>:<div><br></div><div>server=/<a href="http://mycompany.com/10.0.0.1">mycompany.com/10.0.0.1</a></div>

<div><br></div><div>But when I'm trying to get SRV "_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a>" I receive:</div><div><br></div><div><div>> host -t SRV _ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a>. 192.168.5.20</div>

<div>;; Truncated, retrying in TCP mode.</div><div>Using domain server:</div><div>Name: 192.168.5.20</div><div>Address: 192.168.5.20#53</div><div>Aliases:</div><div><br></div><div>Host _ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a>. not found: 3(NXDOMAIN)</div>

</div><div><br></div><div>The direct query works fine:</div><div><div>> host -t SRV _ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a>. 10.0.0.1</div><div>;; Truncated, retrying in TCP mode.</div>

<div>Using domain server:</div><div>Name: 10.0.0.1</div><div>Address: 10.0.0.1#53</div><div>Aliases:</div><div><br></div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server1.mycompany.com">server1.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server2.mycompany.com">server2.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server3.mycompany.com">server3.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server4.mycompany.com">server4.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server5.mycompany.com">server5.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server6.mycompany.com">server6.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server7.mycompany.com">server7.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server8.mycompany.com">server8.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server9.mycompany.com">server9.mycompany.com</a>.</div>

<div><br></div></div><div><br></div><div>And more. If I change query type from SRV to ANY (to the dnsmasq) I receive correct answer:</div><div><br></div><div><div>> host -t ANY _ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a>. 192.168.5.20</div>

<div>;; Truncated, retrying in TCP mode.</div><div>Using domain server:</div><div>Name: 192.168.5.20</div><div>Address: 192.168.5.20#53</div><div>Aliases:</div><div><br></div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server1.mycompany.com">server1.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server2.mycompany.com">server2.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server3.mycompany.com">server3.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server4.mycompany.com">server4.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server5.mycompany.com">server5.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server6.mycompany.com">server6.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server7.mycompany.com">server7.mycompany.com</a>.</div>

<div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server8.mycompany.com">server8.mycompany.com</a>.</div><div>_ldap._tcp.dc._<a href="http://msdcs.mycompany.com">msdcs.mycompany.com</a> has SRV record 0 100 389 <a href="http://server9.mycompany.com">server9.mycompany.com</a>.</div>

<div><br></div></div><div><br></div><div><br></div><div>What is wrong?</div><div><br></div><div>P.S. I have "filterwin2k" commented.</div><div><br></div><div><br clear="all"><div>Best regards,<br>Michael Strelnikov</div>


</div>