<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1529560551858_21520">Hi,</div><div id="yui_3_16_0_ym19_1_1529560551858_21523"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21522">I have following configuration of dnsmasq:</div><div id="yui_3_16_0_ym19_1_1529560551858_21519"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21281" dir="ltr">log-facility=/var/log/dnsmasq.log<br id="yui_3_16_0_ym19_1_1529560551858_21261">interface=switch0<br id="yui_3_16_0_ym19_1_1529560551858_21262">cache-size=1024<br id="yui_3_16_0_ym19_1_1529560551858_21264">domain-needed<br id="yui_3_16_0_ym19_1_1529560551858_21266">no-negcache<br id="yui_3_16_0_ym19_1_1529560551858_21267">expand-hosts<br id="yui_3_16_0_ym19_1_1529560551858_21268">domain=b<br id="yui_3_16_0_ym19_1_1529560551858_21269">bogus-nxdomain=86.35.3.192<br id="yui_3_16_0_ym19_1_1529560551858_21271">bogus-nxdomain=86.35.3.193<br id="yui_3_16_0_ym19_1_1529560551858_21272">stop-dns-rebind<br id="yui_3_16_0_ym19_1_1529560551858_21273">rebind-domain-ok=c<br id="yui_3_16_0_ym19_1_1529560551858_21274">log-queries<br id="yui_3_16_0_ym19_1_1529560551858_21276">localise-queries<br id="yui_3_16_0_ym19_1_1529560551858_21277">bogus-priv<br id="yui_3_16_0_ym19_1_1529560551858_21278">local=/b/<br id="yui_3_16_0_ym19_1_1529560551858_21279">server=192.168.2.1<br id="yui_3_16_0_ym19_1_1529560551858_21280"></div><div id="yui_3_16_0_ym19_1_1529560551858_21297" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21517" dir="ltr">Because of domain-needed option I expected that host only lookup, without domain part will not forwarded to upstream servers (in my case 192.168.2.1, but this seems it is not the case.</div><div id="yui_3_16_0_ym19_1_1529560551858_21384" dir="ltr">The dnsmasq run on an EdgeRouter and has following version:</div><div id="yui_3_16_0_ym19_1_1529560551858_21383" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21382" dir="ltr">root@bucuresti:/etc# /usr/sbin/dnsmasq --version<br id="yui_3_16_0_ym19_1_1529560551858_21373">Dnsmasq version 2.78-20-geaeda96 Copyright (c) 2000-2017 Simon Kelley<br id="yui_3_16_0_ym19_1_1529560551858_21374">Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify<br id="yui_3_16_0_ym19_1_1529560551858_21375"><br id="yui_3_16_0_ym19_1_1529560551858_21376">This software comes with ABSOLUTELY NO WARRANTY.<br id="yui_3_16_0_ym19_1_1529560551858_21377">Dnsmasq is free software, and you are welcome to redistribute it<br id="yui_3_16_0_ym19_1_1529560551858_21378">under the terms of the GNU General Public License, version 2 or 3.</div><div id="yui_3_16_0_ym19_1_1529560551858_21531" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21532" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21533" dir="ltr">If I lookup a host with local domain, then the request is not going to upstream server. Please see below the logged queries:</div><div id="yui_3_16_0_ym19_1_1529560551858_21534" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21535" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21485" dir="ltr">Jun 21 09:13:31 dnsmasq[21398]: query[A] rrr from 127.0.0.1<br id="yui_3_16_0_ym19_1_1529560551858_21464">Jun 21 09:13:31 dnsmasq[21398]: config rrr is NODATA-IPv4<br id="yui_3_16_0_ym19_1_1529560551858_21465">Jun 21 09:13:31 dnsmasq[21398]: query[AAAA] rrr from 127.0.0.1<br id="yui_3_16_0_ym19_1_1529560551858_21466">Jun 21 09:13:31 dnsmasq[21398]: config rrr is NODATA-IPv6<br id="yui_3_16_0_ym19_1_1529560551858_21467">Jun 21 09:13:31 dnsmasq[21398]: query[MX] rrr from 127.0.0.1<br id="yui_3_16_0_ym19_1_1529560551858_21468">Jun 21 09:13:31 dnsmasq[21398]: <b>forwarded rrr to 192.168.2.1</b><br id="yui_3_16_0_ym19_1_1529560551858_21469">Jun 21 09:13:38 dnsmasq[21398]: query[A] rrr.b from 127.0.0.1<br id="yui_3_16_0_ym19_1_1529560551858_21470">Jun 21 09:13:38 dnsmasq[21398]: config rrr.b is NXDOMAIN<br id="yui_3_16_0_ym19_1_1529560551858_21471">Jun 21 09:13:38 dnsmasq[21398]: query[A] rrr.b from 127.0.0.1<br id="yui_3_16_0_ym19_1_1529560551858_21472">Jun 21 09:13:38 dnsmasq[21398]: config rrr.b is NXDOMAIN<br id="yui_3_16_0_ym19_1_1529560551858_21473"></div><div id="yui_3_16_0_ym19_1_1529560551858_21496" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21495" dir="ltr">Is this a bug? Is there any configuration missing? I expected that rrr lookup wil not be forwarded to upstream server (192.168.2.1)<br></div><div id="yui_3_16_0_ym19_1_1529560551858_21493" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1529560551858_21169">Thanks,</div><div id="yui_3_16_0_ym19_1_1529560551858_21536">Spon<br></div></div></body></html>