<div dir="ltr">Hey Albert,<div><br></div><div>Thanks for the reply and sorry about that. The dig command used is </div><div><br></div><div>dig @<a href="http://100.108.108.176" target="_blank">100.108.108.176</a> <a href="http://b.local.example.com" target="_blank">b.local.example.com</a> A.</div><div><br></div><div>100.108.108.176 is the IP of my dns server. This dns server has an entry in /etc/hosts mapping </div><div><a href="http://b.local.example.com" target="_blank">b.local.example.com</a> -> 1.2.3.50.</div><div><br></div><div>My domain '<a href="http://example.com">example.com</a>' has a RR:</div><div><a href="http://local.example.com">local.example.com</a>      NS     3600   MY_DNS_SERVER.com</div><div><br></div><div>I'm expecting the following dig response (which i get when running it locally on my dns server):</div><div><br></div><div><div>; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> @<a href="http://100.108.108.176" target="_blank">100.108.108.176</a> <a href="http://b.local.example.com" target="_blank">b.local.example.com</a></div><div>; (1 server found)</div><div>;; global options: +cmd</div><div>;; Got answer:</div><div>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24172</div><div>;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0</div><div><br></div><div>;; QUESTION SECTION:</div><div>;<a href="http://b.local.example.com" target="_blank">b.local.example.com</a>.<span style="white-space:pre-wrap">              </span>IN<span style="white-space:pre-wrap">      </span>A</div><div><br></div><div>;; ANSWER SECTION:</div><div><a href="http://b.local.example.com" target="_blank">b.local.example.com</a>.<span style="white-space:pre-wrap"> </span>600<span style="white-space:pre-wrap">     </span>IN<span style="white-space:pre-wrap">      </span>A<span style="white-space:pre-wrap">       </span>1.2.3.50</div><div><br></div><div>;; Query time: 0 msec</div><div>;; SERVER: 100.108.108.176#53(100.108.108.176)</div><div>;; WHEN: Mon Jul 11 17:38:03 EDT 2016</div><div>;; MSG SIZE  rcvd: 51</div><div><br></div></div><div>The response if ran from the other computer is:</div><div><br></div><div><div>; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> @<a href="http://100.108.108.176" target="_blank">100.108.108.176</a> <a href="http://b.local.example.com" target="_blank">b.local.example.com</a></div><div>; (1 server found)</div><div>;; global options: +cmd</div><div>;; Got answer:</div><div>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25320</div><div>;; flags: qr aa rd ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0</div><div>;; WARNING: recursion requested but not available</div><div><br></div><div>;; QUESTION SECTION:</div><div>;<a href="http://b.local.example.com" target="_blank">b.local.example.com</a>.<span style="white-space:pre-wrap">              </span>IN<span style="white-space:pre-wrap">      </span>A</div><div><br></div><div>;; AUTHORITY SECTION:</div><div><a href="http://local.example.com" target="_blank">local.example.com</a>.<span style="white-space:pre-wrap">  </span>600<span style="white-space:pre-wrap">     </span>IN<span style="white-space:pre-wrap">      </span>SOA   MY_DNS_SERVER.com. <a href="http://hostmaster.cpe-dynamic-dns.hot.corp.google.com" target="_blank">hostmaster.MY_DNS_SERVER.com</a>. 1468262852 1200 180 1209600 600</div><div><br></div><div>;; Query time: 60 msec</div><div>;; SERVER: 100.108.108.176#53(100.108.108.176)</div><div>;; WHEN: Mon Jul 11 14:32:23 PDT 2016</div><div>;; MSG SIZE  rcvd: 1</div></div><div><br></div><div>The only filtering I've done is changing the domain to <a href="http://example.com">example.com</a> and replacing MY_DNS_SERVER url. Otherwise its copy paste. I don't think the exact URL should matter? </div><div><br></div><div>Let me know if you need anything else.</div><div><br></div><div>Thanks,</div><div><br></div><div>Aaron</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 11, 2016 at 2:26 PM Albert ARIBAUD <<a href="mailto:albert.aribaud@free.fr" target="_blank">albert.aribaud@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aaron,<br>
<br>
Le Mon, 11 Jul 2016 20:20:56 +0000<br>
Aaron Germuth <<a href="mailto:aagermuth@gmail.com" target="_blank">aagermuth@gmail.com</a>> a écrit:<br>
<br>
> Hey guys,<br>
><br>
> I'm trying to run my own dnsmasq instance on a computer. I want it to<br>
> be authoritative for my domain (<a href="http://local.example.com" rel="noreferrer" target="_blank">local.example.com</a>). However I am<br>
> getting different results for the same query from different computers.<br>
><br>
> dig @<a href="http://100.108.108.176" rel="noreferrer" target="_blank">100.108.108.176</a> <a href="http://b.local.example.com" rel="noreferrer" target="_blank">b.local.example.com</a>. A<br>
><br>
> When I run this from the dns server itself (100.108.108.176) I get an<br>
> ip as a response and the following in the logs:<br>
><br>
> Jul 11 14:47:53 MY_DNS_SERVER.com dnsmasq[30817]: query[A]<br>
> <a href="http://b.local.example.com" rel="noreferrer" target="_blank">b.local.example.com</a> from 100.108.108.176<br>
> Jul 11 14:47:53 MY_DNS_SERVER.com dnsmasq[30817]: /etc/hosts 1.2.3.50<br>
> is <a href="http://b.local.example.com" rel="noreferrer" target="_blank">b.local.example.com</a><br>
><br>
> When I run this from a different computer on a different network I do<br>
> not get an IP. Instead dig returns an a SOA pointing to itself<br>
> (MY_DNS_SERVER.com). Furthermore, the logs show the following:<br>
><br>
> Jul 11 14:49:29 MY_DNS_SERVER.com dnsmasq[30817]: auth[A]<br>
> <a href="http://b.local.example.com" rel="noreferrer" target="_blank">b.local.example.com</a> from 172.27.88.26<br>
> Jul 11 14:49:29 MY_DNS_SERVER.com dnsmasq[30817]: auth<br>
> <a href="http://b.local.example.com" rel="noreferrer" target="_blank">b.local.example.com</a> is NODATA-IPv4<br>
><br>
> I'm not sure whats happening. It seems it interprets one as a<br>
> query[A] and one auth[A]. It seems in the 2nd response it thinks it<br>
> doesn't know how to handle that domain so it returns who it thinks is<br>
> authoritative for that domain, which is itself. This is what my<br>
> dnsmasq.conf looks like:<br>
><br>
> auth-server=MY_DNS_SERVER.com,eth0<br>
> auth-zone=<a href="http://local.example.com" rel="noreferrer" target="_blank">local.example.com</a>,eth0<br>
><br>
> log-queries<br>
><br>
> #do not read resolv.conf to find servers where to lookup dns<br>
> no-resolv<br>
> #do not poll resolve.conf for changes<br>
> no-poll<br>
><br>
> #address to use when address not local<br>
> server=8.8.8.8<br>
> server=4.4.4.4<br>
><br>
> local=/<a href="http://local.example.com/" rel="noreferrer" target="_blank">local.example.com/</a><br>
> domain=<a href="http://local.example.com" rel="noreferrer" target="_blank">local.example.com</a><br>
><br>
> If you need any more information, let me know.<br>
<br>
First thing you should do is not to filter out or explain the dig<br>
commands you use and their results, but instead to just copy-paste the<br>
command and its output. Here, for instance, none of what you provide<br>
allows checking how the request was sent exactly, and what principal<br>
and additional info was returned.<br>
<br>
> Thanks,<br>
><br>
> Aaron<br>
<br>
Amicalement,<br>
--<br>
Albert.<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div></div>