Struggling to set custom DNS

I want to put all traffic through my PiHole but I have no DNS options in the Network settings. Whats the best way to achieve this on Bazzite?
14 Replies
Robbeh
Robbeh2mo ago
I use pihole, but i just have the dhcp server assign the pihole dns servers - or are you trying to manually assign them?
Mr Chandy
Mr Chandy2mo ago
I use a PiHole DNS server, and if you manually configure your IPv4 network in the network settings you should have an option for the DNS servers to use. If you are on gnome it might look different, but it should also have something similar.
No description
samessss.
samessss.OP2mo ago
This looks familiar, I’ll check it out when I’m home later 👍🏻 So is it as simple as just adding the PiHoles IP to the Other DNS Servers box and apply?
Mr Chandy
Mr Chandy2mo ago
Should be
samessss.
samessss.OP2mo ago
It didn’t unfortunately…basically my Pi runs OMV as a NAS, I installed PiHole on Docker just to play around with it, but there were some issues with hosts or something.
Mr Chandy
Mr Chandy2mo ago
Interesting, mine is also running in Docker. Are you sure you've got pihole running on port 53 and properly exposed?
samessss.
samessss.OP2mo ago
So that’s what I was trying to investigate, but I was going round in circles with ChatGPT so I nuked it all and will try it another time. Tempted to get another Pi just for it.
Cope
Cope2mo ago
You should really consider setting your router's DNS server to the pihole so clients can pull it with DHCP. It's a mess to do it on every single client, and even if you set it up right on each client, your router might decide to overwrite the client's DNS settings anyway.
samessss.
samessss.OP2mo ago
I would but I have an ExpressVPN Aircove so it all goes through their DNS at router level. I’d prefer to have some clients just use the PiHole.
Cope
Cope2mo ago
ah, I'm not sure how it works with ExpressVPN but with PIA/OpenVPN you can set it to use your DNS server locally first. oh, they're making their own routers. That's uh... that's a thing...
samessss.
samessss.OP2mo ago
My aim is to ditch it and get a GL.inet router and go back to Mullvad.
bobbybowser
bobbybowser2mo ago
You need to set DNS-Cache and DNS-StubListener in OMV to no or else the port 53 will already be in use by systemd-resolved and the docker container won't start:bobofrfr:
No description
samessss.
samessss.OP2mo ago
I’ll give it a go, thanks.
bobbybowser
bobbybowser2mo ago
Also don'T forget to runsystemctl restart systemd-resolved or restart omv afterwards

Did you find this page helpful?