[Dnsmasq-discuss] Why does dnsmasq append .home to a plain hostname?
Uwe Schindler
uwe at thetaphi.de
Tue Oct 22 06:08:51 BST 2019
Hi,
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.
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.
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.
Uwe
-----
Uwe Schindler
Achterdiek 19, D-28357 Bremen
https://www.thetaphi.de
eMail: uwe at thetaphi.de
From: Dnsmasq-discuss <dnsmasq-discuss-bounces at lists.thekelleys.org.uk> On Behalf Of Sean Warner
Sent: Tuesday, October 22, 2019 2:25 AM
To: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: [Dnsmasq-discuss] Why does dnsmasq append .home to a plain hostname?
Hello,
I have these two lines in my /etc/dnsmasq.conf
address=/mymovies/192.168.1.124
address=/mymovies.ncp/192.168.1.124
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… http://mymovies this is what I get in the dnsmasq log file:
Oct 21 23:38:12 dnsmasq[19823]: query[A] mymovies.home from XX.XX.XXX.XXX
Oct 21 23:38:12 dnsmasq[19823]: config mymovies.home is 192.168.1.124
However when I make this request from Chrome http://mymovies.ncp this is what I get in the dnsmasq log file:
Oct 21 23:41:54 dnsmasq[19823]: query[A] mymovies.ncp from XX.XX.XXX.XXX
Oct 21 23:41:54 dnsmasq[19823]: config mymovies.ncp is 192.168.1.124
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?
Thank you,
Flex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20191022/45b0f4a4/attachment.html>
More information about the Dnsmasq-discuss
mailing list