<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1804079163;
mso-list-type:hybrid;
mso-list-template-ids:-1606545872 -1 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
</head>
<body lang="EN-US">
<div class="WordSection1">
<p class="MsoNormal">Apologies for raising what is probably a newbie question, but I’ve been unable to find an answer elsewhere despite several hours of online searching.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am transferring the DHCP/DNS services provided by dnsmasq for my LAN from one device to another (the old device runs Debian wheezy; the new one runs Debian stretch).</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A number of the devices on my LAN have fixed IP addresses. Some of these are statically-defined on the devices themselves, and others are always assigned the same address by virtue of entries in dnsmasq.conf like this:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">dhcp-host=1C:6F:65:39:09:8D,colossus,10.0.0.8</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is all pretty straightforward, and has worked fine for years on the old device.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But what I’m noticing when I try to cut over to the new device is that the DNS service only appears to be resolving local LAN addresses for devices for which it has issued a DHCP lease. I had assumed that those fixed IP entries in dnsmasq.conf
“initialized” the DNS service so that it would resolve them properly whether or not a lease had been issued.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Questions:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Is there a way to configure dnsmasq to act the way I expected it to?</li></ul>
<p class="MsoListParagraph"><o:p> </o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">If not, what’s the recommended way of addressing the situation? I could put the fixed IP addresses in /etc/hosts. But I’ve resisted doing that because of concerns over someday accidentally
changing the DHCP assignment in dnsmasq.conf and forgetting to update the corresponding entry in hosts (or vice versa). It feels kludgy.</li></ul>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">- Mark</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>