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
 

By this I mean, I have a powerdns server running in my cluster, I would like Kubernetes to add/update dns entries in my dns server to reflect all services or any domains that would be used within the cluster, this is to fix a current issue I am having, and for general control and centralization purposes.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 week ago (4 children)

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.

[–] [email protected] 1 points 1 week ago (3 children)
[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (1 children)

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.

[–] [email protected] 1 points 1 week ago (1 children)

Could you explain the steps to active your setup? I'm sure I can modify it for powerdns

[–] [email protected] 1 points 6 days ago

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.

load more comments (1 replies)
load more comments (1 replies)