<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:"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;}
@font-face
        {font-family:inherit;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {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;}
/* List Definitions */
@list l0
        {mso-list-id:1866825502;
        mso-list-template-ids:162061298;}
@list l0:level1
        {mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level4
        {mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level7
        {mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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-IE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>I did some more testing and confirmed that the .home was being sent to the dhcp client (my laptop) by the dhcp server on my router. The Windows OS then appended that dns suffix when doing a dns lookup on any unqualified domain names.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Actually I was able to confirm Windows order of name resolution:<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:6.0pt;margin-left:22.5pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'>The client checks to see if the name queried is its own.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:6.0pt;margin-left:22.5pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'>The client then searches a local Hosts file, a list of IP address and names stored on the local computer.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:6.0pt;margin-left:22.5pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'>Domain Name System (DNS) servers are queried.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:22.5pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span style='font-size:11.5pt;font-family:"inherit","serif";color:#242729;mso-fareast-language:EN-IE'>If the name is still not resolved, NetBIOS name resolution sequence is used as a backup. This order can be changed by configuring the NetBIOS node type of the client.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>I need a webpage to work from Windows and from an Android phone so my question now is to confirm what is the process of name resolution on Android OS?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>My dnsmasq.conf contains these two lines (as well as others!)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>address=/mymovies/192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>#address=/mymovies.home/192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>So the mymovies.home is commented out.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Here is dnsmasq log file after I try to access a webpage from the Android phone with the url <a href="http://mymovies">http://mymovies</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:22 dnsmasq[16759]: query[A] mymovies.home from XX.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:22 dnsmasq[16759]: forwarded mymovies.home to 192.168.1.254<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:24 dnsmasq[16759]: query[A] mymovies.home from XX.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:24 dnsmasq[16759]: forwarded mymovies.home to 192.168.1.254<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:26 dnsmasq[16759]: reply mymovies.home is NXDOMAIN<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:26 dnsmasq[16759]: reply mymovies.home is NXDOMAIN<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:26 dnsmasq[16759]: query[A] mymovies from XX.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:07:26 dnsmasq[16759]: config mymovies is 192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:10:22 dnsmasq[16759]: query[A] mymovies from XX.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:10:22 dnsmasq[16759]: config mymovies is 192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:16:14 dnsmasq[18418]: query[A] mymovies from XX.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Oct 28 02:16:14 dnsmasq[18418]: config mymovies is 192.168.1.124<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>The X’s are my routers public ip address redacted.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Can someone explain what is happening?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>It looks like dnsmasq starts by trying to resolve mymovies.home then it can’t so it tries mymovies and succeeds?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>So does this mean that Android OS will try to do name resolution on an unqualified domain name? I know that Windows will not.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>The last four lines in the log output are when I just repeated the same webpage load from the Android phone two times. The first time I just reloaded the page (at 02:10:22). The second time I actually restarted dnsmasq and cleared the phones browser dns cache and recent history (at 02:16:14). However it looks like those last two name resolutions were successful from an earlier cached response? Why didn’t it try mymovies.home on these last two occassions? Maybe I needed to do something like an ipconfig /flushdns on the phone.. if only it was rooted, which it isn’t.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Sorry but my understanding of dnsmasq is limited!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Flex<o:p></o:p></span></p></div></body></html>