<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal">I’ve been using DNSMASQ for some time now and all has been well. However, since playing with a few IOT devices I’ve discovered an anomaly. Can anyone help to provide some assistance with the following?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A server is allocated a fixed IP address from DHCP and a dynamic DNS ‘A’ record is made in the DNS DB – e.g. Server1.at-home --> 192.168.1.67<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve now implemented IOT and added a fixed DNS ‘A’ record for a MQTT server – e.g. MQTTBroker.at-home --> 192.168.1.67 (same as above) - to allow me to move the MQTT server to other locations without having to reconfigure all the IOT devices
to point at the new server name. All is well so far.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Now if I do the following:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">‘nslookup server1.at-home’, it resolves the IP address 192.168.1.67 as I’d expect.<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">‘nslookup MQTTBroker.at-home’, it resolves the IP address 192.168.1.67 as I’d expect.<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">‘nslookup 192.168.1.67’, it resolves the name of MQTTBroker.at-home, not Server1.at-home as I wanted. Hmmm!!!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is this as designed or is it just bad luck on my part as to which name is returned by the DNSMASQ?<o:p></o:p></p>
<p class="MsoNormal">Is there any configuration setting that can be made to control which name takes preference? If not, can a mechanism/feature be added, such as a priority system as to which is preferred.?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Your Hopefully<o:p></o:p></p>
<p class="MsoNormal">Kevin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>