Did something changed in the way dnsmasq is handeling lookups with server=?
docker exec -it pihole bash
pihole:/# pihole -v
Core version is v6.0.6 (Latest: v6.0.6)
Web version is v6.1 (Latest: v6.1)
FTL version is v6.1 (Latest: v6.1)
$ host test.network.lan
test.network.lan has address 10.0.0.10
docker exec -it pihole bash
pihole:/# pihole -v
Core version is v6.1 (Latest: v6.1)
Web version is cc1cc28 (Latest: v6.2.1)
FTL version is v6.2 (Latest: v6.2)
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
The domains "lan." and "vpn.lan." are two entirely different domains just like "net." and "pi-hole.net." are.
Not sure what you expect?
$ man dnsmasq
[..]
-S, --local, --server=[/[<domain>]/[do‐
main/]][<server>[#<port>]][@<interface>][@<source-ip>[#<port>]]
[..]
More specific domains take precedence over less specific do‐
mains, so: --server=/google.com/1.2.3.4
--server=/www.google.com/2.3.4.5 will send queries for
google.com and gmail.google.com to 1.2.3.4, but
www.google.com will go to 2.3.4.5
As mentoined in another topic i already uploaded a debug log..
Im not able to do a pihole tail in the new version:
/var/log/pihole/pihole.log: (new version)
Jun 1 21:54:03 dnsmasq[50]: query pi.hole from 127.0.0.1
Jun 1 21:54:03 dnsmasq[50]: Pi-hole hostname pi.hole is 127.0.0.1
Jun 1 21:54:05 dnsmasq[50]: query test.lan from 10.0.3.7
Jun 1 21:54:05 dnsmasq[50]: config test.lan is NXDOMAIN
Jun 1 21:54:33 dnsmasq[50]: query pi.hole from 127.0.0.1
tail in previous version:
Jun 1 22:24:53: query[A] test.lan from 10.0.3.7
Jun 1 22:24:53: forwarded test.lan to 10.0.0.53
Jun 1 22:24:53: reply test.lan is 10.0.0.10
Jun 1 22:24:53: query[AAAA] test.lan from 10.0.3.7
Jun 1 22:24:53: forwarded test.lan to 10.0.0.53
Jun 1 22:24:53: reply test.lan is NODATA-IPv6
Jun 1 22:24:53: query[MX] test.lan from 10.0.3.7
Jun 1 22:24:53: forwarded test.lan to 10.0.0.53
Jun 1 22:24:53: reply test.lan is NODATA
For historical reasons, the pattern /.google.com/ is equivalent to /google.com/ if you wish to match any subdomain of google.com but NOT google.com itself, use /*.google.com/
Using server=/lan/10.0.0.53 as only option test.lan stops working (and all subdomains)
Adding server=/*.lan/10.0.0.53 and everything works..
Removing server=/lan/10.0.0.53 and everything works, even .lan addresses.
I changed my dns-server for lan to an additional dnsmasq (10.62.100.1) container with .lan and .home. (host-record=test.home,10.0.0.10) (host-record=test.lan,10.0.0.10)
It looks like there's something wrong with resolving if .lan is involved.
Again server=/*.lan/10.62.100.1 has solved the issue, but according to the man page of dnsmasq server=/lan/10.62.100.1 should work. But it doesn't.
I wonder if below has anything to do with your observations:
$ sudo cat /etc/pihole/dnsmasq.conf
[..]
# Never forward A or AAAA queries for plain names, without
# dots or domain parts, to upstream nameservers. If the name
# is not known from /etc/hosts or DHCP, NXDOMAIN is returned
local=//
$ man dnsmasq
[..]
-S, --local, --server=[/[<domain>]/[do‐
main/]][<server>[#<port>]][@<interface>][@<source-ip>[#<port>]]
[..]
Also permitted is a -S flag which gives a domain but no IP
address; this tells dnsmasq that a domain is local and it
may answer queries from /etc/hosts or DHCP but should never
forward queries on that domain to any upstream servers.
--local is a synonym for --server to make configuration
files clearer in this case.