FIrst of all, let me state that I am fairly new to all of the 'home labbing'. So please bear with me and keep it simple.
I have an issue that part of my network 'collapsed'. Which means that some of vlans don't have internet access and some do (DNS issue). I had it 'fixed' a couple of days ago when I recreated the pihole container, but I don't know exactly what I diid to fix the issue. I was just glad it worked again. After a reboot I am back to all the problems and I can't figure out what it is and what to do.
So I am guessing it is DNS related and is something related to pihole. I see in the pihole logs: [✗] DNS resolution is not available. The web UI is unreachable; not via the local IP address, not via the traefik address. And if I put in 8.8.8.8 as the DNS in opnsense for the VM, the network is back online.
I have the following setup:
Server with Proxmox as a hypervisor. With currently 2 VM's:
Opnsense, with unbound on 192.168.121.1
Ubuntu Server VM, running docker on 192.168.121.145.
In docker I have the follwing (relevant) containers:
Traefik as a reverse proxy.
Pihole as my ad blocker. This is also the place where I put in my local DNS records for traefik acces.
So what did I do/check already:
- In the docker compose file I've got Unbound setup as the upstream server via the environment variable: PIHOLE_DNS_: '192.168.121.1'
- The DNS setting of the Ubuntu VM/docker host is pointing at itself/pihole in etc/resolv.conf:
nameserver 192.168.121.145
search mydomain.com - The DNS setting within the pihole container in etc/resolv.conf is:
nameserver 127.0.0.11
search mydomain.com
options ndots:0
Based on host file: '/etc/resolv.conf' (internal resolver)
ExtServers: [192.168.121.145]
Overrides:
Option ndots from: internal
- I've checked the network status with ping to 8.8.8.8 and 192.168.121.1 (Unbound) and this works.
- I've checked the serupvars.conf: PIHOLE_DNS_1=192.168.121.1
- Checked docker ps status, checked logs. Nothing strange other than the dns issue.
- Did a ns lookup on: pihole.mydomain.com. Gave:
nslookup pihole.mydomain.com
Server: 127.0.0.11
Address: 127.0.0.11#53
** server can't find pihole.mydomain.com: SERVFAIL
I tried to troubleshoot with Ai, but I am running in circles. Off course I also looked into this forum. But most of the times it is hard for me. On the one hand, because sometimes the hardware and setup are different. And sometimes, because it is too complex dor me to comprehend at this point. And I don't want to break anything further.
So hopefully here I can take it step by step for my situation.