If I have just 1 laptop with domain CONSULTING-AG.local, can I force to provide just 2 IP addresses (for eth & WiFi) with
domain=CONSULTING-AG.local,192.168.2.123,192.168.2.124
?
I guess you would need to use IP address reservation to ensure eth will be next to wifi
@DL6ER
many thanks for your solution. I was looking for this quite a while, as I basically had same issue with my company laptop. Thx to your solutions it's gone.
Yeah, they need separate lines.
Yes.
Same here ... with Company-Laptop, Company-Phones, private Desktop, private iPhone, oculus etc. (Short: ALL DEVICES)
I have my own DNS/DHCP-Config (etc/dnsmasq.d/05-lan-config.conf)
Error-Message: Ignoring domain wlan (lan) for DHCP host name iphone(desktop,laptop,laptopwork)
This is the config for my iPhone:
dhcp-host=M:A:C,iphone.wlan,172.20.5.80,infinite
host-record=iphone.wlan,172.20.5.80
I've added
domain=iphone.wlan,172.20.5.80
So I have to add a line domain=xxx,123 for each device? Is there no "shorter" version here? 3 lines per DNS/DHCP entry ... wow
dhcp-host=M:A:C,iphone.wlan,172.20.5.80,infinite
host-record=iphone.wlan,172.20.5.80
domain=iphone.wlan,172.20.5.80
update: doesn't work
Ignoring domain wlan for DHCP host name iphone - new log entry ...
Did you do pihole restartdns
after l afterwards?
of course ... via GUI and after this Reboot Pi4
How is the configuration line for IPv6? For IPv4 I get it work.
I tried:
domain=domain1.aa,[::103]
But this produce an error message:
FATAL ERROR in dnsmasq core: error at line
Why the square brackets? They are not part of IPv6 addresses.
Because, with other parameters (e.g. dhcp-host), the square brackets are standard.
This syntax for the dnsmasq domain paramter works for IPv:
domain=domain1.aa,::103
Thank for the support!
I have now deactivated "expand-hosts" in /etc/dnsmasq.d/01-pihole.conf: negative. After reconnect of the mentioned client => warning.
The same with "domain-needed".
It also makes no difference whether I have "domain=...." in it or not.
Does anyone else have an idea how I can get rid of the WARNING. Which is noticeable ... I googled a few things ...DOMAINS were always affected - but that is not the case with me:
Ignoring domain wlan for DHCP host name iphone
WLAN = TLD not DOMAIN
Do I have to change something fundamental in my DHCP/DNS config? I would like to use the TLDs wlan, lan, air, plc, vpn. Because I also have "mixed clients" - they should have the same name - but differ in the TLD. iphone.vpn is the same terminal as iphone.wlan, laptop.wlan = laptop.lan (just always different IP addresses).
But the whole thing doesn't seem to work like that - or I'm ignoring the warning ;(
Translated with www.DeepL.com/Translator (free version)
Your text is a bit hard to parse as it's not always clear where you are citing from the logs and where you are writing text yourself.
this should indeed work (the host-record
isn't needed), did your restart pihole-FTL
after changing your configuration?
6 posts were merged into an existing topic: Ignoring domain xxxxxxxxx.yyy for DHCP host name zzzzzzzzzz
Oh sorry - my English is not the best
But yes - I restarted the PI but also DNS restart (before reboot). None of this did anything.
The only devices that don't appear are 2 Windows PCs that have a fixed IP registered on the PC. But that's what the error message says: it's a DHCP problem. The two PCs do not do this.
I also looked in the /etc/dnsmasq.d/01-pihole.conf and found 2 entries that have something to do with hosts ;).
expand-hosts
domain-needed
I changed both of them - but it didn't work (they are now back to the default value!).
I had "host-record" in there for my iPhone - I removed it now.
dhcp-host=M:A:C,iphone.wlan,172.20.5.80,infinite
domain=iphone.wlan,172.20.5.80
This is the complete entry for the iPhone.
I restarted the PI and set the iPhone to WLAN (DHCP request) - immediately:
Ignoring domain wlan for DHCP host name iphone
I can't set anything else on the clients. Somehow the issue must be solved with dnsmasq...
I think i found the solution!
dhcp-host=M:A:C,iphone,172.20.5.80,infinite
host-record=iphone.wlan,172.20.5.80
domain=iphone.wlan,172.20.5.80
=> WORKS (No Error, DNS-Resolution for iphone.wlan)
dhcp-host=M:A:C,iphone,172.20.5.80,infinite
host-record=iphone.wlan,172.20.5.80
#domain=iphone.wlan,172.20.5.80
=> WORKS (No Error, DNS-Resolution for iphone.wlan)
dhcp-host=M:A:C,iphone,172.20.5.80,infinite
#host-record=iphone.wlan,172.20.5.80
domain=iphone.wlan,172.20.5.80
=> No DNS-Resolution for iphone.wlan => NEW DNS-NAME: iphone.iphone.wlan
==> dhcp-host must only contain the host part. No .lan, .wlan .... (that was the fault)
domain= is obviously not a substitute for host-record= - both (why? What does domain do that host-record does not?) or only host-record must be used - otherwise there are problems in DNS resolution
You should use:
domain=wlan,172.20.5.80
When your dhcp-host named iphone, then you get iphone.wlan.
(yes: after every config-change: restart dns)
dhcp-host=M:A:C,stv,172.20.5.103,infinite
#host-record=stv.lan,172.20.5.103
domain=lan,172.20.5.103
=> don't work - no DNS-Resolution for stv.lan ... no nslookup for 172.20.5.103
I need host-record for DNS ... without host-record: nslookup stv.lan or nslookup 172.20.5.103 don't work. It doesn't matter what the hostname is in dhcp-host or domain ...
dhcp-host=M:A:C,stv,172.20.5.103,infinite
host-record=stv,172.20.5.103
domain=lan,172.20.5.103
DNS Works ... But the config is flawed as it is ...
dhcp-host=M:A:C,stv,172.20.5.104,infinite
host-record=stv,172.20.5.104
domain=wlan,172.20.5.104
Thats the WLAN-Host ... in this combi:
nslookup 172.20.5.103 => "stv"
nslookup 172.20.5.104 => "stv"
nslookup stv => Non-existent domain
nslookup stv.lan => Non-existent domain.
nslookup stv.wlan => works
This
dhcp-host=M:A:C,stv,172.20.5.104,infinite
host-record=stv,172.20.5.104
domain=wlan,172.20.5.104
or
dhcp-host=M:A:C,stv,172.20.5.104,infinite
host-record=stv,172.20.5.104
#domain=wlan,172.20.5.104
are the only valid options ...
But this then gives rise to the following scenario:
dhcp-host=M:A:C,iphone,172.20.5.80,infinite
host-record=iphone.wlan,172.20.5.80
dhcp-host=M:A:C,stv,172.20.5.103,infinite
host-record=stv.lan,172.20.5.103
dhcp-host=M:A:C,stv,172.20.5.104,infinite
host-record=stv.wlan,172.20.5.104
nslookup iphone => Non-existent domain
nslookup stv => 172.20.5.103
Sure - I don't do the resolution only on iphone/stv - there is always a ".lan" or ".wlan" added. But why are there different results here although the configuration entries for both devices are identical? Even if I remove the entry for the .104 IP, nothing changes.
I will now use the following config
dhcp-host=M:A:C,iphone,172.20.5.80,infinite
host-record=iphone.wlan,172.20.5.80
I don't see any reason for "domain" - couldn't really find anything about it either.
There are still a few things in the config
domain-needed
expand-hosts
These two points certainly also play a role in this topic ... but I don't feel like trying out all the variants I haven't found any good documentation for this
A post was split to a new topic: Domain= and IPv6 address
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.