<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Geert,</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Feb 15, 2018 at 11:45 PM, Geert Stappers <span dir="ltr"><<a href="mailto:stappers@stappers.nl" target="_blank">stappers@stappers.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Feb 15, 2018 at 10:46:27PM +0000, Andy Ruddock wrote:<br>
> Todd Andrews wrote:<br>
> > Hi All,<br>
> ><br>
> > I'm running dnsmasq 2.76 on a Raspberry Pi.<br>
<br>
FWIW there are 2.79 release candidates.<br></blockquote><div><br></div><div>Thanks for this info.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> > It's been working great for<br>
> > months but today I started seeing an odd behavior for a specific local<br>
> > device and I don't know how to troubleshoot it.<br>
> ><br>
> > The device is a Dell Inspiron 5577 Windows 10 Home edition laptop with the<br>
> > latest Windows updates. It's getting an IP address of 192.168.1.115.<br>
<br>
What did choose the .115 ??<br></blockquote><div> </div><div>In the absence of another DHCP server on my network, my guess is that it could only have been assigned by dnsmasq.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> > I first noticed the problem when I tried to establish a VNC connection to it<br>
> > because I can't connect via its hostname, "sagan", but I can connect via<br>
> > its IP address.<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Is hostname "sagan" really configured inside the Windows 10 Home edition laptop??<br></blockquote><div><br></div><div>Yes. It's configured as the Computer Name under Windows.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> > Neither the IP assignment nor the laptop's MAC address appear in<br>
> > dnsmasq.leases. The only reason I know it is assigned .115 is by physically<br>
> > going to the laptop and running the Windows 'ipconfig' program at the<br>
> > command prompt.<br>
> ><br>
> > I've rebooted the Raspberry Pi and the Windows 10 laptop, but it hasn't<br>
> > made a difference.<br>
> ><br>
> > More info below. Does anyone have any ideas?<br>
> ><br>
> > Regards,<br>
> > Todd<br>
><br>
><br>
> Are you sure the windows box hasn't been configured with a static IP<br>
> address?<br>
><br>
> Any information when you refresh the IP address from within a cmd window<br>
> in Windows?<br>
> ipconfig /renew<br>
><br>
> ><br>
> ><br>
> > 1. dnsmasq.log shows:<br>
> > /var/log/dnsmasq.log:Feb 15 12:38:34 dnsmasq[738]: config 192.168.1.115 is NXDOMAIN<br>
<br>
Yes, that is problem original poster has.<br>
<br>
> > 2. I believe the following are the relevant dnsmasq config file entries.<br>
> > These have been working for quite some time. I'm obfuscating the full MAC<br>
> > address:<br>
> ><br>
> > dhcp-host=f4:8e:38:xx:xx:xx,<wbr>sagan<br>
<br>
That is MAC-address and hostname.<br>
Where is the "connection" / "link" with IP-address?<br></blockquote><div> </div><div>I don't know. Nothing showed in dnsmasq.leases. I don't know where else to look.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
And about MAC-address:<br>
* How many MAC addresses has the laptop?<br>
* Are you using the right one?<br>
* What was done to prevent typo errors?<br></blockquote><div><br></div><div>Laptop has two. One wired (192.168.1.115) and one wifi (wifi is disabled). I'm using the correct one. I double- and triple-checked what I typed before posting to this list.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> > domain=si.loc<br>
> > local=/si.loc/<br>
> > expand-hosts<br>
> ><br>
> ><br>
> > 3. $ dnsmasq --test<br>
> > dnsmasq: syntax check OK.<br>
> ><br>
> ><br>
> > 4. Using the program WinIPConfig2012 a.k.a. WinIPConfig 4.0<br>
> > <<a href="http://www.pkostov.com/wordpress/?p=19" rel="noreferrer" target="_blank">http://www.pkostov.com/<wbr>wordpress/?p=19</a>>, I've verified that the laptop is<br>
> > using the Raspberry Pi as the DHCP server. There's no other DHCP server on<br>
> > my network that I know of.<br>
> ><br>
> > 5. On a third computer, a Macintosh, I get these results.<br>
<br>
The third computer, what is the hostname?<br></blockquote><div><br></div><div>"Stormwind" at 192.168.1.6</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> > The Raspberry Pi is at 192.168.1.40.<br>
> ><br>
> > $ ping sagan<br>
> > *ping: cannot resolve sagan: Unknown host*<br>
> > $ ping sagan.si.loc<br>
> > *ping: cannot resolve sagan.si.loc: Unknown host*<br>
> ><br>
Does it work for the hostname of the third computer?<br>
<br></blockquote><div><br></div><div>I think you're asking if I can ping/dig/nslookup the third computer via hostname. The answer is YES. The following were typed on the Raspberry Pi running dnsmasq:</div><div><br></div><div><div>quark:~ pi$ ping stormwind</div></div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div><div>PING stormwind (192.168.1.6) 56(84) bytes of data.</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>64 bytes from stormwind.si.loc (192.168.1.6): icmp_seq=1 ttl=64 time=0.675 ms</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>64 bytes from stormwind.si.loc (192.168.1.6): icmp_seq=2 ttl=64 time=0.574 ms</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div>^C</div></div><div><div>--- stormwind ping statistics ---</div><div>2 packets transmitted, 2 received, 0% packet loss, time 1002ms</div><div>rtt min/avg/max/mdev = 0.574/0.624/0.675/0.056 ms</div></div><div><br></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div>quark:~ pi$ ping stormwind.si.loc</div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div>PING stormwind.si.loc (192.168.1.6) 56(84) bytes of data.</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>64 bytes from stormwind.si.loc (192.168.1.6): icmp_seq=1 ttl=64 time=0.632 ms</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>64 bytes from stormwind.si.loc (192.168.1.6): icmp_seq=2 ttl=64 time=0.575 ms</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>^C</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>--- stormwind.si.loc ping statistics ---</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>2 packets transmitted, 2 received, 0% packet loss, time 1001ms</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>rtt min/avg/max/mdev = 0.575/0.603/0.632/0.037 ms</div><div><br></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div>quark:~ pi$ dig stormwind</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div>; <<>> DiG 9.9.5-9+deb8u15-Raspbian <<>> stormwind</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; global options: +cmd</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; Got answer:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53380</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; OPT PSEUDOSECTION:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>; EDNS: version: 0, flags:; udp: 4096</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; QUESTION SECTION:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;stormwind. IN A</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; ANSWER SECTION:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>stormwind. 0 IN A 192.168.1.6</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; Query time: 4 msec</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; SERVER: 127.0.0.1#53(127.0.0.1)</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; WHEN: Fri Feb 16 09:16:41 PST 2018</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; MSG SIZE rcvd: 54</div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>quark:~ pi$ dig stormwind.si.loc</div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>; <<>> DiG 9.9.5-9+deb8u15-Raspbian <<>> stormwind.si.loc</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; global options: +cmd</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; Got answer:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 324</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; OPT PSEUDOSECTION:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>; EDNS: version: 0, flags:; udp: 4096</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; QUESTION SECTION:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;stormwind.si.loc. IN A</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; ANSWER SECTION:</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>stormwind.si.loc. 0 IN A 192.168.1.6</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; Query time: 1 msec</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; SERVER: 127.0.0.1#53(127.0.0.1)</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; WHEN: Fri Feb 16 09:16:45 PST 2018</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>;; MSG SIZE rcvd: 61</div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>quark:~ pi$ nslookup stormwind</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div>Server: 127.0.0.1</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>Address: 127.0.0.1#53</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>Name: stormwind</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>Address: 192.168.1.6</div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>quark:~ pi$ nslookup stormwind.si.loc</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div>Server: 127.0.0.1</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>Address: 127.0.0.1#53</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>Name: stormwind.si.loc</div></div></div><div class="gmail_extra"><div class="gmail_quote"><div>Address: 192.168.1.6</div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Groeten<br>
<span class="gmail-HOEnZb"><font color="#888888">Geert Stappers<br>
--<br>
Leven en laten leven<br></font></span></blockquote></div></div></div>