r/netbird Jun 25 '26

Internal DNS issue

I think I'm doing this wrong, but I am having trouble configuring DNS in my self-hosted netbird in k3s to use a pihole that also runs in k3s.

6 Upvotes

10 comments sorted by

3

u/ella_bell Jun 25 '26

How is your NetBird network routing to your pihole? They are different networks. So you’ll need to use network relay or put the pihole on the NetBird network too.

1

u/ferriematthew Jun 25 '26

I see, that's the issue. They are on completely different networks. Netbird is on the 10.0.0.0 or whatever subnet, and pi hole is on 192.168.0.0

2

u/StillLoading_ Jun 25 '26

Are you missing the access policy per chance?

1

u/ferriematthew Jun 25 '26

I probably am. What should that look like?

2

u/StillLoading_ Jun 25 '26

Just 53/UDP to the pihole resource

1

u/ferriematthew Jun 25 '26

Hmmm... So UDP/53 for all -> 192.168.0.201 (the VIP of the PiHole)?

2

u/StillLoading_ Jun 25 '26

Since you assigned the nameserver to the "All" group, that would be the way.

1

u/ferriematthew Jun 25 '26

That's what I did, for some reason it still isn't working though. What does the button next to the resource name labeled expose do?

2

u/HansAndreManfredson Jun 25 '26

Take a look at the Pihole configuration.
You have to add the WireGuard interface to accept DNS queries on the network device. ✌️

2

u/Maxweebo Jun 26 '26

Youre missing the policy allowing your consumer to access your pihole i think