this post was submitted on 25 Apr 2025
5 points (100.0% liked)
Kubernetes
1057 readers
2 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not sure how powerDNS works but the cleanest method is to make your DNS server also handle your DHCP. Any client that gets an address is automatically given a DNS entry matching it's name.
Any idea how I do that?
With powerDNS, no. Personally, I use Fedora with podman containers. I have a pihole container utilizing unbound as my roothints resolver so all of my requests are internalized. Pihole has DHCP availability, but I utilize my gateway (Unifi) for DHCP and simply build my local DNS records manually on Pihole as needed.
I'm not sure how many Kubes you actually have, but building a local DNS entry is pretty manageable unless you have a LOT of Kubes automatically deploying themselves.
Could you explain the steps to active your setup? I'm sure I can modify it for powerdns
It's quite literally how I laid it out. I have a Fedora server with an Unbound container for roothints lookup, and a pihole container for internal DNS sevices. It's taken a lot of time to get working like any homelab stuff.
I've never heard of powerDNS but you may be in a situation where you need to read their docs or try and find other posts or videos of what you're trying to accomplish. Sorry I wasn't much more help.