CNAME that could be looked up in the LAN.
When i dig the CNAME on the pihole-box it looks ok but I can’t use nslookup on a Windows client to get it.
Observe that I have changed my dns names and IP’s in the text below for privacy, so it’s a bit different in the debug file.
May 17 21:02:52 dnsmasq: query[A] ipam from 127.0.0.1 May 17 21:02:52 dnsmasq: config ipam is <CNAME> May 17 21:03:26 dnsmasq: query[A] ipam from 127.0.0.1 May 17 21:03:26 dnsmasq: config ipam is <CNAME> May 17 21:03:47 dnsmasq: query[A] ipam.lan from 192.168.1.xxx May 17 21:03:47 dnsmasq: forwarded ipam.lan to 220.127.116.11 May 17 21:03:47 dnsmasq: reply ipam.lan is NXDOMAIN
I created a 05-cname.conf under /etc/dnsmasq.d with the following,
to make ipam a CNAME of homeserver and with dig and nslookup local on the pihole box it did found it and reported as a CNAME but when I tried on a Windows client i Didnt get it.
nslookup ipam Server: piHole.lan Address: 192.168.1.xxx *** piHole.lan can't find ipam: Non-existent domain
What I can see in the log above is that when I requested the query from my client it forwared it to my upstream DNS.
I also have a 99-my-conf.conf under /etc/dnsmasq.d with the following configuration,
domain=lan expand-hosts local=/lan/
Should not that local=/lan/ do so .lan doesn’t goes to upstream servers?
I have also checked the “Never forward non-FQDNs” in the web gui,