Maybe Simon can figure out what you're saying, but I can't. If you included some specific examples it would make your situation much easier to understand.<div><br></div><div>e.g. (and if your situation doesn't substantially match this made-up example, go and re-read the description of the expand-hosts option)</div>
<div><br></div><div><<<Begin made-up example>>></div><div><br></div><div>/etc/hosts has an entry for the unqualified name xyzzy:</div><div><br></div><div>aaa.bbb.ccc.71 xyzzy</div><div><br></div><div>/etc/resolv.conf points to localhost first, then my ISP</div>
<div><br></div><div>server 127.0.0.1</div><div>server aaa.bbb.ccc.ddd</div><div><br></div><div>nslookup xyzzy works:</div><div><br></div><div>> nslookup xyzzy</div><div>Authoritative response from <a href="http://127.0.0.1">127.0.0.1</a>: aaa.bbb.ccc.71 (A record)</div>
<div><br></div><div>nslookup <a href="http://xyzzy.domain.com">xyzzy.domain.com</a> also succeeds, but I think it shouldn't with expand-hosts turned off:</div><div><br></div><div>> nslookup <a href="http://xyzzy.domain.com">xyzzy.domain.com</a></div>
<div>Authoritative response from <a href="http://127.0.0.1">127.0.0.1</a>: aaa.bbb.ccc.71 (A record)</div><div><br></div><div>I want this to return NXDOMAIN instead. How can I configure dnsmasq to do that?</div><div><br>
</div><div><<<End made-up example>>><br><br><div class="gmail_quote">On Tue, Dec 28, 2010 at 12:34 AM, Jean-Pierre van Melis <span dir="ltr"><<a href="mailto:fraterdnsmasq@hetemail.com">fraterdnsmasq@hetemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><font style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt">
<div><br>
I am having trouble with the feature expand-hosts.</div>
<div>The dnsmasq running on my router has no 'expand-hosts' in its
dnsmasq.conf and it still expands hosts for domains that are unable to
resolve.</div>
<div>It is especially troublesome in my setup as I also have wildcard set on
my <domain> so these requests will be redirected to my WAN IP
address.</div>
<div> </div>
<div>On my router I have a pound reverse proxy running which then gets
traffic which it shouldn't receive.</div>
<div> </div>
<div>Why is dnsmasq expanding the host?</div>
<div>It seems it does it always when I set <domain=<a href="http://domain.com" target="_blank">domain.com</a>>. Is
this true?</div>
<div>If so, why is there a separate setting for expand-hosts?</div>
<div> </div>
<div>I understand the need for such a feature, but I don't understand why it
also expands on hosts that don't contain a dot.</div>
<div> </div>
<div>Is it possible to have a switch so I can better control its
behavior?</div>
<div> </div>
<div>Cheers all...</div>
</font></div>
<br>_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br></blockquote></div><br></div>