CoreDNS stops resolving DNS after every reboot on pfSense Plus 26.07, including WireGuard remote access
-
I am using a Netgate 4200 running pfSense Plus 26.07 and have found what appears to be a reproducible CoreDNS startup issue. I also noticed a related DNS problem with my WireGuard remote-access VPN after enabling CoreDNS.
My DNS setup was:
- CoreDNS enabled and listening on port
53 - Unbound DNS Resolver listening on port
5353 - CoreDNS forwarding queries to Unbound
- Multiple local VLANs
- WireGuard remote-access VPN
- WireGuard clients use the pfSense WireGuard address
10.2.3.1as their DNS server
Problem 1 – DNS fails after every pfSense reboot
After rebooting pfSense:
- Internet connectivity by IP still works
- I can ping
8.8.8.8 - DNS resolution fails, for example
google.comdoes not resolve - The issue affects normal LAN clients
- CoreDNS still appears to be enabled in the configuration
If I then:
- Disable CoreDNS
- Apply the change
- Enable CoreDNS again
- Apply the change
DNS immediately starts working again.
This behaviour is reproducible after every reboot.
Problem 2 – WireGuard remote-access DNS
I also experienced a DNS issue with my WireGuard remote-access connection.
The WireGuard tunnel itself was working correctly:
- WireGuard connected successfully and showed a recent handshake
- I could access/ping local network IP addresses
- I could ping
8.8.8.8 - However, I could not resolve or ping
google.com - The WireGuard client DNS server was set to
10.2.3.1, which is the pfSense WireGuard tunnel address
So the VPN routing and Internet access were working, but DNS through pfSense was not.
After disabling CoreDNS completely and changing Unbound from port
5353back to port53, the WireGuard DNS problem also disappeared.The WireGuard client can now:
- Access local IP addresses
- Ping
8.8.8.8 - Resolve and ping
google.com - Use
10.2.3.1as its DNS server normally
Workaround
I have currently disabled CoreDNS completely and changed Unbound from port
5353back to port53.With this configuration:
- DNS works normally after reboot
- LAN clients resolve DNS normally
- WireGuard remote-access clients resolve DNS normally
8.8.8.8andgoogle.comboth work through WireGuard
This suggests that the WireGuard routing, firewall rules and outbound NAT are working correctly, and the problem appears to be related specifically to CoreDNS.
Has anyone else seen either of these behaviours on pfSense Plus 26.07?
The reboot issue looks as though CoreDNS may not be initialising or binding correctly during startup, because simply disabling and re-enabling CoreDNS after boot fixes DNS immediately.
- CoreDNS enabled and listening on port
-
I have exactly the same issue with CoreDNS not coming back on after a re-boot. Tried three different machines all loaded with fresh installs with minimal packages during testing.
Can't put my finger on exactly what is causing it but I see the issue being brought up by others.
Switched CoreDNS off till next revision of pfSense.
Privacy Policy · Cookie Policy