<div dir="ltr">Thanks.  I thought maybe I should just define it like all other machines, but wasn't sure if the server's name  was a special case.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 19, 2017 at 2:59 AM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Carl,<br>
<br>
Le Sat, 18 Feb 2017 21:53:52 -0600<br>
<span class="">Carl Karsten <<a href="mailto:carl@nextdayvideo.com">carl@nextdayvideo.com</a>> a écrit:<br>
<br>
</span>> [...]<br>
<span class="">><br>
> so if I set no-hosts, how does dnsmaq figure out how to resolve<br>
>> dc10b?<br>
<br>
</span>Just the same way it does any other machine; the fact that a machine is<br>
a name server does not make its name(s) or IP address(es) any special<br>
in the *content* of the zone it serves.<br>
<br>
For instance:<br>
<br>
- some zone admins will want the local DHCP and DNS server(s) to not<br>
  have any entry in the local zone, because no machine in the LAN is<br>
  supposed to need refering them by name.<br>
<br>
- some zone admins will want to give the DHCP server the name "dhcp"<br>
  and the DNS server the name "dns" because they want to be able to<br>
  not remember the actual IP address for them.<br>
<br>
- some zone admins will want every machine on the LAN to have a name<br>
  which describes the make and model of the machine, e.g. "rpi-1234",<br>
  and they want this to apply to servers too.<br>
<br>
- etc.<br>
<br>
So, really, as far as the zone contents is concerned, dnsmasq does not<br>
care whether an entry in it is the DNS server, DHCP server, or neither.<br>
If you want the local machines to know that dc10b is 10.20.1.3, then<br>
you should have an entry in the zone for it. Whether you do that with<br>
an /etc/hosts line, or you use no-hosts and put a host-record option in<br>
your dnsmasq configuration file is up to you. Either method works.<br>
<span class=""><br>
> ore really, what should I be doing so that 'things work as I expect' ?<br>
<br>
</span>What you should do is define what you expect :) -- i.e. decide how you<br>
want to manage the content of your LAN zone.<br>
<br>
For instance, in my case I want the the host running my dnsmasq known<br>
by both a 'given name' and several functional names, and I want *all*<br>
LAN host names in a single file different from he dnsmasq configuration<br>
file, so I use addn-hosts to point dnsmasq to this file, which contains<br>
among others the 'given' and functional names of the dnsmasq server<br>
itself.<br>
<br>
But how /you/ do it is really for /you/ to decide; the way /I/ do may<br>
not fit your needs.<br>
<br>
Amicalement,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Albert.<br>
</font></span></blockquote></div><br></div>