Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

DNS config management

License

Notifications You must be signed in to change notification settings

securityscorecard/dns-chief

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dns-chief

Todo

  • CloudFlare Support
  • Route53 Support

Example config

ops.yml:

- name: testing.ops.example.com
  value: 10.10.0.123
  state: present
  type: A
  ttl: 60

CloudFlare

Usage

Importing from CloudFlare

export API_KEY={{ cloudflare token }}
export EMAIL={{ cloudflare email }}
./chief-dns -zone=yourdomain.com -import

or

docker run -v /path/to/files:/app \
  -e API_KEY= {{ cloudflare token }} \
  -e EMAIL={{ cloudflare email}} \
  dns-chief

Syncing with CloudFlare

export API_KEY={{ cloudflare token }}
export EMAIL={{ cloudflare email }}
./chief-dns -zone=yourdomain.com -sync

Example output:

2016/09/25 23:04:26 Zone found: example.com
2016/09/25 23:04:27 227 remote records found.
2016/09/25 23:04:27 [config] loading: chief.yml
2016/09/25 23:04:27 1 records loaded.
2016/09/25 23:04:27 1 local records found.
2016/09/25 23:04:27 [patching] testing-chief.example.com  :: value: 127.0.0.2 -> 127.0.0.123
2016/09/25 23:04:27 [patched] testing-chief.example.com
2016/09/25 23:04:27 Consider running -operation=import to sync up differences.
2016/09/25 23:04:27 {Created:0 Removed:0 Updated:1}