|
|
@ -14,12 +14,13 @@ func (mgr *Manager) WriteTo(w io.Writer) (int64, error) { |
|
|
|
cache := make(map[string][]netip.Addr) |
|
|
|
cache := make(map[string][]netip.Addr) |
|
|
|
|
|
|
|
|
|
|
|
// zones
|
|
|
|
// zones
|
|
|
|
for _, z := range mgr.zones { |
|
|
|
for _, zoneName := range mgr.genZonesSorted() { |
|
|
|
|
|
|
|
z := mgr.zones[zoneName] |
|
|
|
|
|
|
|
|
|
|
|
mgr.writeZoneHosts(&buf, z) |
|
|
|
mgr.writeZoneHosts(&buf, z) |
|
|
|
|
|
|
|
|
|
|
|
// zone alias
|
|
|
|
// zone alias
|
|
|
|
addrs := mgr.genZoneAddresses(z) |
|
|
|
addrs := mgr.genZoneAddresses(z) |
|
|
|
zoneName := z.Name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rr := AddrRecord{ |
|
|
|
rr := AddrRecord{ |
|
|
|
Name: mgr.fqdn(zoneName + mgr.suffix), |
|
|
|
Name: mgr.fqdn(zoneName + mgr.suffix), |
|
|
|