github.com/xendk/cdddns.cr
main / published Apr 5, 2026 / repository
CDDDNS
Crystal Docker Development Domain Name Service. A riff on LDDDNS.
Add domain names to Docker containers so they're easier to access from a browser (among other things).
The difference from LDDDNS is that CDDDNS just hacks /etc/hosts,
rather than using multicast DNS.
Installation
shards build
Run ./bin/cdddns by hand.
Usage
sudo ./bin/cdddns
Listens to Docker events and adds container IPs to /etc/hosts. You
can test it on another file with the -f switch (in which case sudo
isn't needed).
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/xendk/cdddns/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Thomas Fini Hansen - creator and maintainer
API
- Cdddns
A simple Docker "DNS service".