Decouple diff computation from executable provider closures by fetching provider records and computing diffs locally via DNSControlDiffByRecord. On apply, build a target record set from user-selected corrections using BuildTargetRecords, then ask the provider for executable corrections against that target. A published snapshot is inserted at ZoneHistory[1] while the WIP zone at position 0 remains unchanged. |
||
|---|---|---|
| .. | ||
| dnscontrol-correction.go | ||
| dnscontrol-correction_test.go | ||
| dnscontrol-providers.go | ||