1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

BIND: Enable hermetic zone builds (#2275)

Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
Tom Limoncelli
2023-04-25 18:00:11 -05:00
committed by GitHub
parent b24e7ef126
commit fba40d5373
3 changed files with 25 additions and 0 deletions

11
pkg/bindserial/main.go Normal file
View File

@ -0,0 +1,11 @@
package bindserial
// NB(tlim): Yes, its gross to use a global variable for this.
// However there's no cleaner way to do it. Ideally we'd add a way to
// have per-provider flags or settings on the command line. At least
// by isolating it to this file we limit the blast radius of this bad
// decision.
// ForceBindSerial if non-zero, BIND will generate SOA serial numbers
// using this value.
var ForcedValue int64