<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 18, 2017 at 12:06 PM, Albert ARIBAUD <span dir="ltr"><<a href="mailto:albert.aribaud@free.fr" target="_blank">albert.aribaud@free.fr</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">Hi Carl,<br>
<br>
Le Sat, 18 Feb 2017 09:31:19 -0600<br>
<span class="gmail-">Carl Karsten <<a href="mailto:carl@nextdayvideo.com">carl@nextdayvideo.com</a>> a écrit:<br>
<br>
</span><span class="gmail-">> dc10b is the dnsmasq server<br>
<br>
</span>Ok; and I assume that you are running 'host' on another machine, right?<br></blockquote><div><br></div><div>yes.  <br></div><div>also running it on dc10b.<br></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">
<span class="gmail-"><br>
> I am using a modified version of this:<br>
> <a href="https://anonscm.debian.org/git/debconf-video/ansible.git/tree/roles/dhcp-server" rel="noreferrer" target="_blank">https://anonscm.debian.org/<wbr>git/debconf-video/ansible.git/<wbr>tree/roles/dhcp-server</a><br>
<br>
</span>Can't say it tells me much. :)<br>
<span class="gmail-"><br>
> I haven't checked in the mods yet because things are still a little<br>
> wonky. git diff ... skimmed, don't see anything that would affect<br>
> dnsmasq.<br>
><br>
> juser@dc10b:~$ cat /etc/dnsmasq.d/local.conf<br>
> ## Ansible managed<br>
><br>
> interface=eth-local<br>
> domain=lca2017.lan<br>
> dhcp-range=10.20.1.10,10.20.1.<wbr>254,6h<br>
> dhcp-option-force=210,/srv/<wbr>tftp/<br>
> dhcp-boot=pxelinux.0<br>
> dhcp-authoritative<br>
> enable-tftp<br>
> tftp-root=/srv/tftp<br>
<br>
</span>And what's the /etc/hosts?<br></blockquote><div><br><br>juser@dc10b:~$ cat /etc/hosts<br>127.0.0.1    localhost<br>127.0.1.1    dc10b<br><br># The following lines are desirable for IPv6 capable hosts<br>::1     localhost ip6-localhost ip6-loopback<br>ff02::1 ip6-allnodes<br>ff02::2 ip6-allrouters<br><br></div><div>Note: that is current.  I have been changing the dc10b line, but it should be clear in my posts what it is when I show test results.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> Hmm, on an openwtt ap running dnsmasq:<br>
><br>
> root@tpap:~# cat /etc/resolv.conf<br>
> search lan<br>
> nameserver 127.0.0.1<br>
><br>
> root@tpap:~# cat /etc/hosts<br>
> 127.0.0.1 localhost<br>
><br>
> root@tpap:~# nslookup tpap<br>
> Server:    127.0.0.1<br>
> Address 1: 127.0.0.1 localhost<br>
> Name:      tpap<br>
> Address 1: 192.168.1.2 tpap.lan<br>
<br>
</span>What's 'tpap' supposed to be?<br>
<br></blockquote><div> </div><div><span class="gmail-">192.168.1.2 </span><br><br></div><div>so this install does what I would expect.<br></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">
Anyway, my guess: your dnsmasq server has its own name listed in<br>
its /etc/hosts with 127.0.1.1 as the matching IP,</blockquote><div><br></div><div>correct <br></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 your dnsmasq<br>
config does not contain option no-hosts, </blockquote><div><br></div><div>correct <br></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">so your dnsmasq uses<br>
its /etc/hosts when resolving a name; ergo, it resolves its own name to<br>
127.0.1.1.<br></blockquote><div><br></div><div>correct<br><br><br></div><div>so if I set no-hosts, how does dnsmaq figure out how to resolve dc10b? <br><br></div><div>ore really, what should I be doing so that 'things work as I expect' ?<br></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">
<br>
Amicalement,<br>
<span class="gmail-HOEnZb"><font color="#888888">--<br>
Albert.<br>
</font></span></blockquote></div><br></div></div>