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

NEW FEATURE: Support Split Horizon DNS (#1034)

* Implement main feature
* BIND: Permit printf-like file name formats
* BIND: Make filenameformat work forwards and backwards.
* Fix extrator test cases
This commit is contained in:
Tom Limoncelli
2021-02-05 12:12:45 -05:00
committed by GitHub
parent 36289f7157
commit c547beacc0
11 changed files with 612 additions and 24 deletions

View File

@ -112,10 +112,10 @@ func run(args PreviewArgs, push bool, interactive bool, out printer.CLI) error {
totalCorrections := 0
DomainLoop:
for _, domain := range cfg.Domains {
if !args.shouldRunDomain(domain.Name) {
if !args.shouldRunDomain(domain.UniqueName) {
continue
}
out.StartDomain(domain.Name)
out.StartDomain(domain.UniqueName)
nsList, err := nameservers.DetermineNameservers(domain)
if err != nil {
return err