[Dnsmasq-discuss] Why does dnsmasq append .home to a plain hostname?
uwe at thetaphi.de
Tue Oct 22 06:08:51 BST 2019
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.
Achterdiek 19, D-28357 Bremen
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?
I have these two lines in my /etc/dnsmasq.conf
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: query[A] mymovies.home from XX.XX.XXX.XXX
Oct 21 23:38:12 dnsmasq: 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: query[A] mymovies.ncp from XX.XX.XXX.XXX
Oct 21 23:41:54 dnsmasq: 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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dnsmasq-discuss