RetroFed Forums
Your home away from modern life.
Netbird and Pihole
Post Reply
AuthorMessage
inanimate_carbon_rod lemmy.zip inanimate_carbon_rod@lemmy.zip
Joined: 2026-03-15
(edited) Quote

I've got a modest homelab setup: a couple computers and a server with the pfsense router pointing all DNS queries to my pi hole on a Pi Zero W. The server exposes a few services via cloudflare tunnel. It's been working pretty well.

Then I started setting up a server for a friend. It's a big repurposed server board running proxmox and will eventually have a handful of VMs and LXCs, all on a network. It's for his business, so I'm setting up Netbird on it for his half-dozen employees to be able to access it for fileshares and stuff. I'm connecting my Linux desktop, too, so I can do sysadmin for him.

The trouble is that domain name resolution is getting hairy between my pihole and his netbird. Since it's not my network, I can't add my pihole as a DNS resource, but I do need to keep a connection to his network.

Anyone have any wisdom to share as to how to handle this properly and still be able to use my pihole for DNS filtering in my house?

25   Original
NarrativeBear lemmy.world NarrativeBear@lemmy.world
Joined: 2023-06-20
#2 · Quote Reply

I have no netbird experience, but if it's just like wireguard can you split tunnel instead of full tunnel to your friends network?

I think with a split tunnel you should still be able to access his network and resources?

7
inanimate_carbon_rod lemmy.zip inanimate_carbon_rod@lemmy.zip
Joined: 2026-03-15
#3 · Quote Reply

I have no netbird experience, but if it's just like wireguard can you split tunnel instead of full tunnel to your friends network? I think with a split tunnel you should still be able to access his network and resources?

I haven't come across a way to split tunnel, but it's worth looking into. I'm managing it all by CLI anyway, so maybe there's a command for that.

3
frongt lemmy.zip frongt@lemmy.zip
Joined: 2025-07-31
#4 · Quote Reply

It’s for his business

Nope. Nope nope nope. You don't want to be the one responsible for anything when he and his employees are having problems, especially at odd hours or when you're not around to fix something.

23
diecknet discuss.tchncs.de diecknet@discuss.tchncs.de
Joined: 2023-08-19
#5 · Quote Reply

It’s for his business Nope. Nope nope nope. You don't want to be the one responsible for anything when he and his employees are having problems, especially at odd hours or when you're not around to fix something.

Depends on if the friend is paying for the service :P

5
diecknet discuss.tchncs.de diecknet@discuss.tchncs.de
Joined: 2023-08-19
#6 · Quote Reply

I use Netbird and Pi-Hole, but I don't understand what issues you're having. If you're connected to Netbird, you should be able to use the Netbird DNS names to reach other devices, e.g. fileserver.netbird.cloud

2
StripedMonkey lemmy.zip StripedMonkey@lemmy.zip
Joined: 2025-03-07
#7 · Quote Reply

If you set up resources correctly on his netbird network it effectively is a split tunnel. You don't have to route anything through it but his "file shares and stuff".

I have a rather gnarly nested double nat within my house where the homelab is isolated behind it's own separate firewall and have some limited resources on both. It's been perfectly serviceable.

I believe I have a resource of *.whathaveyou.net on the netbird gateway inside the network and no default route. If you do have that default route I believe you can have it as a separate resource and disable it.

Self-hosted netbird is pretty incredible to be honest.

2
inanimate_carbon_rod lemmy.zip inanimate_carbon_rod@lemmy.zip
Joined: 2026-03-15
#8 · Quote Reply

Depends on if the friend is paying for the service :P

And he is :)

5
inanimate_carbon_rod lemmy.zip inanimate_carbon_rod@lemmy.zip
Joined: 2026-03-15
#9 · Quote Reply

I use Netbird and Pi-Hole, but I don't understand what issues you're having. If you're connected to Netbird, you should be able to use the Netbird DNS names to reach other devices, e.g. fileserver.netbird.cloud

That part has worked fine so far. My trouble seems to be that my desktop is defaulting to netbird for DNS instead of the pihole, so I lose the pihole blocking. I suppose the easiest solution is just to netbird down when I'm not using it so DNS goes back to default.

2
diecknet discuss.tchncs.de diecknet@discuss.tchncs.de
Joined: 2023-08-19
#10 · Quote Reply

That part has worked fine so far. My trouble seems to be that my desktop is defaulting to netbird for DNS instead of the pihole, so I lose the pihole blocking. I suppose the easiest solution is just to netbird down when I'm not using it so DNS goes back to default.

Ah, understood. It depends on your client OS, e.g. for Linux it should be possible. You just need to configure no nameservers in Netbird: https://docs.netbird.io/manage/dns#default-behavior-no-nameservers-configured

4
statelesz slrpnk.net statelesz@slrpnk.net
Joined: 2026-01-03
#11 · Quote Reply

I haven't come across a way to split tunnel, but it's worth looking into. I'm managing it all by CLI anyway, so maybe there's a command for that.

NetBird is based in WireGuard and using split tunneling by default.

3
statelesz slrpnk.net statelesz@slrpnk.net
Joined: 2026-01-03
#12 · Quote Reply

Just disable DNS in your client.

https://docs.netbird.io/manage/dns/dns-settings#client-side-dns-control

3
Tomas_reek lemmy.world Tomas_reek@lemmy.world
Joined: 2026-10-23
Banned
#13 · Quote Reply

[removed by moderator]
1
Post Reply
Back to top