Hi All,
I'm currently running PiHole in a docker container (compose config below), but seem to be having a problem using the .lan
domain with Local DNS Records.
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
- TZ=Europe/London
- WEBPASSWORD=[password]
- ServerIP=[IP]
# Volumes store your data between container upgrades
volumes:
- /home/ubuntu/pihole/etc-pihole:/etc/pihole/
- /home/ubuntu/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
cap_add:
- NET_ADMIN
dns:
- 127.0.0.1
- 1.1.1.1
restart: unless-stopped
I have a small Nginx VM at IP 192.168.86.124
where I point my Local DNS records at and, depending on which is used, will proxy_pass
to the correct IP/Port somewhere else in my network.
I believe Google WiFi uses dnsmasq to register hostnames to the .lan
doman, and I think that might be conflicting with my Local DNS names. The following is an example of the Google WiFi registered .lan
domain against my nginx box.
╰─ nslookup nginx.lan
Server: 192.168.86.1
Address: 192.168.86.1#53
Name: nginx.lan
Address: 192.168.86.124
Example
If I set up two Local DNS Records in the PiHole UI
- deluge.home.lan -> 192.168.86.124
- deluge.home.com -> 192.168.86.124
Both point to the NGINX box (192.168.86.124), but the nslookup
outputs show a difference:
╰─ nslookup deluge.home.com
Server: 192.168.86.1
Address: 192.168.86.1#53
Name: deluge.home.com
Address: 192.168.86.124
╰─ nslookup deluge.home.lan
Server: 192.168.86.1
Address: 192.168.86.1#53
** server can't find deluge.home.lan: NXDOMAIN
Is there something I need to do, to get .lan
domains playing nicely between Google WiFi <--> PiHole