Skip to content

A lightweight Kubernetes controller that watches new nodes and automatically updates their PTR records.

License

Notifications You must be signed in to change notification settings

vulnebify/miseptr

Repository files navigation

misePTR

misePTR (PTR-updater) is a lightweight Kubernetes controller that watches new nodes and automatically updates their PTR records (reverse DNS) through provider APIs like Vultr.

Test miseptr


Features

  • Watch Kubernetes Node events in real-time 👀
  • Update PTR (reverse DNS) records automatically 🌍
  • Pluggable provider system (default: Vultr) 🔌
  • Full integration testing with envtest 🧪
  • Built with Go, no CRDs required ⚡

Installation

Build locally

make build

Usage

./bin/miseptr watch --provider vultr --suffix example.com

✅ Connects automatically to in-cluster Kubernetes or local ~/.kube/config.


Commands

Command Description
miseptr watch Watch nodes and update PTR records

Flags

Flag Description Default
--provider Provider backend (e.g., vultr) vultr
--suffix Suffix for PTR template (%s.suffix) required

Testing

Install setup-envtest and run tests:

make setup-envtest
sudo make fetch-envtest-binaries
make test

✅ This sets up a local Kubernetes control plane for integration testing.


GitHub Release

To create a versioned release:

git tag v1.0.0
git push origin v1.0.0

The binary will appear under Releases.


License

This project is licensed under the MIT License.

About

A lightweight Kubernetes controller that watches new nodes and automatically updates their PTR records.

Topics

Resources

License

Stars

Watchers

Forks