dnsdock is a DNS server for automatic docker container discovery. It’s a simplified version of the unmaintained Skydock.
This is free and open source software.
Differences with skydock:
- No raft / simple in-memory storage – Does not use any distributed storage and is meant to be used only inside single host. This means no ever-growing log files and memory leakage. AFAIK skydock currently does not have a state machine so the raft log always keeps growing and you have to recreate the server periodically if you wish to run it for a long period of time. Also the startup is very slow because it has to read in all the previous log files.
- No TTL heartbeat – Skydock sends heartbeats for every container that reset the DNS TTL value. In production this has not turned out to be reliable. What makes this worse it that if a heartbeat has been missed, skydock does not recover until you restart it. Dnsdock uses static TTL that does not count down. You can override it for a container and also change it without restarting(before updates). In most cases you would want to use TTL=0 anyway.
- No dependency to other container – Dnsdock does not use a separate DNS server but has one built in. Linking to another container makes recovery from crash much harder. For example skydock does not recover from skydns crash even if the crashed container is restarted.
- A records only for now.
- No support for Javascript plugins.
- There’s a slight difference in a way image names are extracted from a container. Skydock uses the last tag set on image while dnsdock uses the specific tag that was used when the container was created. This means that if a new version of an image comes out and untags the image that your container still uses, the DNS requests for this old container still work.
Website: github.com/aacebedo/dnsdock
Support:
Developer: Tõnis Tiigi
License: MIT License
dnsdock is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| Service Discovery | |
|---|---|
| etcd | Distributed reliable key-value store |
| Consul | Offers service discovery, service mesh, traffic management, and more |
| Nacos | Dynamic service discovery, configuration management, and service governance |
| Eureka | RESTful (Representational State Transfer) service |
| ZooKeeper | Centralized service for maintaining configuration information |
| dnsdock | DNS server for automatic docker container discovery |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

