{"id":21711255,"url":"https://github.com/distributedsystemsgroup/swarm-dns","last_synced_at":"2026-05-19T02:52:55.219Z","repository":{"id":78311882,"uuid":"47250750","full_name":"DistributedSystemsGroup/swarm-dns","owner":"DistributedSystemsGroup","description":"A small daemon to keep a Bind DNS server in sync with containers created in Docker Swarm","archived":false,"fork":false,"pushed_at":"2015-12-08T15:14:46.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-17T17:42:15.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DistributedSystemsGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-02T09:29:10.000Z","updated_at":"2022-08-26T09:19:31.000Z","dependencies_parsed_at":"2023-03-12T04:06:53.783Z","dependency_job_id":null,"html_url":"https://github.com/DistributedSystemsGroup/swarm-dns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DistributedSystemsGroup%2Fswarm-dns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DistributedSystemsGroup%2Fswarm-dns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DistributedSystemsGroup%2Fswarm-dns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DistributedSystemsGroup%2Fswarm-dns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DistributedSystemsGroup","download_url":"https://codeload.github.com/DistributedSystemsGroup/swarm-dns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244666585,"owners_count":20490287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T23:20:46.777Z","updated_at":"2026-05-19T02:52:55.182Z","avatar_url":"https://github.com/DistributedSystemsGroup.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swarm-dns\nA small daemon to keep a Bind DNS server in sync with containers created in Docker Swarm.\n\nTo use:\n\n1. copy a `rndc.key` file containing the DDNS key from bind in this directory\n2. customize the `build.sh` file to set the right Docker tags for your environment\n3. run `build.sh` to build and push the Docker image containing the RNDC key (do not push to the public docker hub!)\n4. customize the `start.sh` script: set the Swarm manager location, volume path and image name\n5. run `start.sh` and enjoy your fully qualified container names\n\n`start.sh` will run `swarm-dns` in a container.\n\nLaunch containers by giving them hostnames (the -h option of `docker run`).\n\nPlease note:\n\nThis script is work-in-progress and should be used with caution.\nYou will need to modify `main.py` to set the DNS server IP and domain to use for the containers.\n\nSince Docker reports only the ID of the container in the event stream, `swarm-dns` needs to keep the association between ID, IP and hostname, so that it can remove the entry from the DNS when the container is destroyed.\nThis means that `swarm-dns` has state and it makes it much more complex and unreliable. The state can go out of sync if events happen while `swarm-dns` is down or if the state file is lost.\n\nNothing should prevent `swarm-dns` from working with a Docker Engine instance instead of a full Swarm.\n\nPull requests are more than welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedsystemsgroup%2Fswarm-dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributedsystemsgroup%2Fswarm-dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedsystemsgroup%2Fswarm-dns/lists"}