Skip to content

methridge/consul2zone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul to BIND Zone

Consul Template to read all services registered in Consul and create a BIND zone file.

Usage

The dns.tmpl file is the base for your zone file. Include your SOA information, NS, MX and other static records for your zone.

The template uses the unix timestamp as the serial number so you get automatic incrementing.

Update the template.hcl file to include your Consul ACL token, if needed. And if desired a post-exec command or script validate your zone file and reload bind.

Once ready this can be run via the following command, with debug logging

consul-template -config=template.hcl -log-level=debug

About

Creating a BIND zone from Consul services

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages