<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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@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: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;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The reason for this is a “default domain” entry in the Windows 7 laptop configuration, so it is sent by the client in the case of a missing domain. It was not added by dnsmasq, but by the Windows client.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>On the other hand, this still resolves, because you seem to also have a “domain = home” in your dnsmasq config, so the “mymovies” entry working also for the deafult domain on the dnsmasq side. As the windows device (using dnsmasq also for DHCP) gets the default domain by the above entry.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I am not sure what your problem is, to me it looks like it’s configured correctly. If you want “.ncp” your preferred domain, set “domain = ncp” and only keep the first entry.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Uwe<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span style='mso-fareast-language:DE'>-----<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Uwe Schindler<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Achterdiek 19, D-28357 Bremen<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'><a href="https://www.thetaphi.de">https://www.thetaphi.de</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>eMail: uwe@thetaphi.de<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='mso-fareast-language:DE'>From:</span></b><span style='mso-fareast-language:DE'> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> <b>On Behalf Of </b>Sean Warner<br><b>Sent:</b> Tuesday, October 22, 2019 2:25 AM<br><b>To:</b> dnsmasq-discuss@lists.thekelleys.org.uk<br><b>Subject:</b> [Dnsmasq-discuss] Why does dnsmasq append .home to a plain hostname?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>I have these two lines in my /etc/dnsmasq.conf<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>address=/mymovies/192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>address=/mymovies.ncp/192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Dnsmasq is running on a Pi. Also on the same LAN is my Win 7 laptop. When I make this request from Chrome on the laptop… <a href="http://mymovies">http://mymovies</a> this is what I get in the dnsmasq log file:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Oct 21 23:38:12 dnsmasq[19823]: query[A] mymovies.home from XX.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Oct 21 23:38:12 dnsmasq[19823]: config mymovies.home is 192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>However when I make this request from Chrome <a href="http://mymovies.ncp">http://mymovies.ncp</a> this is what I get in the dnsmasq log file:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Oct 21 23:41:54 dnsmasq[19823]: query[A] mymovies.ncp from XX.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Oct 21 23:41:54 dnsmasq[19823]: config mymovies.ncp is 192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Apologies if this is a really basic question, I am a beginner with dnsmasq. Why is .home appended to a hostname when it is just a plain simple word without any domain or tld?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-IE style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-IE style='mso-fareast-language:EN-IE'>Flex<o:p></o:p></span></p></div></div></body></html>