Skip to content
Contents
GuidesOpenWrt

DNS fails during an OpenWrt PBR policy reload with Pi-hole and a VPN

During PBR reconstruction, if the VPN endpoint itself relies on DNS within the tunnel, name resolution may cause mutual waiting. Cache hits can mask such startup ordering issues.

Applies to · x86/64 · OpenWrt 25.12.5 · PBR 1.2.2-r20 · Pi-hole → Unbound

What to check

Initiate the same domain query from the router and Pi-hole, then verify the next hop from Pi-hole to Unbound.

Connect over Ethernet and run the following commands in an SSH session on the router.

/etc/init.d/pbr status
ip rule show

How to interpret the result

Query the endpoint name from the router, and query the business name from the client if it's not cached. If the router query fails, inspect the DNS resolution path used by the endpoint. If both queries fail, check sequentially along Pi-hole, Unbound, and upstream servers whether requests received a response.

Verify and recover

Check that the router can resolve the VPN endpoint and that a client can resolve a fresh service name through the intended path. Keep wired access available and restore the saved policy priorities if resolution fails.

Related guide · Where to capture packets on OpenWrt when a TCP handshake times out

Explore hardware

Comments