https://github.com/kassisol/dns-updater
DNS Updater runs as a Docker service on a Docker Swarm manager host and listen for service create events then add cname to DNS provider based on label added to services
https://github.com/kassisol/dns-updater
Last synced: 4 months ago
JSON representation
DNS Updater runs as a Docker service on a Docker Swarm manager host and listen for service create events then add cname to DNS provider based on label added to services
- Host: GitHub
- URL: https://github.com/kassisol/dns-updater
- Owner: kassisol
- License: gpl-3.0
- Created: 2017-11-08T21:20:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T16:20:36.000Z (over 8 years ago)
- Last Synced: 2024-06-20T11:10:57.113Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 1.17 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DNS Updater
DNS Updater runs as a Docker service on a Docker Swarm manager host and listens for service create events then add cname to DNS provider based on label provided.
Only one dns backend is supported which is `infoblox`.
## Getting started
### Run it
First add the config file in Docker Secret:
```bash
# docker secret create infoblox_config -
---
ipam_host: ''
api_version: '2.4'
username: ''
password: ''
```
Then start dns-updater service on any of the Docker Swarm manager using that secret
```bash
# docker service create -d --constraint "node.role==manager" -v /var/run/docker.sock:/var/run/docker.sock --secret source=infoblox_config,target=/config.yml --name dns-updater kasissol/dns-updater:x.x.x -c /config.yml
```
### Use it
Labels are used to configure your services.
| Label | Description |
|-----------|----------------------------------------------|
| dns.host | Give host name the CNAME will be pointed to. |
| dns.cname | Give the CNAME name. |
Example:
```bash
# docker service create -d --label "dns.host=foo.example.com" --label "dns.cname=bar.example.com" --name web1 nginx
```
## User Feedback
### Issues
If you have any problems with or questions about this application, please contact us through a [GitHub](https://github.com/kassisol/dns-updater/issues) issue.