core/dnsserver: normalize server block zones (#8320)

This commit is contained in:
houyuwushang
2026-07-23 10:04:15 +08:00
committed by GitHub
parent 1cf446a2b5
commit 55949d626b
3 changed files with 36 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ func (h *dnsContext) InspectServerBlocks(_sourceFile string, serverBlocks []cadd
}
}
for i := range hosts {
zoneAddrs = append(zoneAddrs, zoneAddr{Zone: dns.Fqdn(hosts[i]), Port: port, Transport: trans})
zoneAddrs = append(zoneAddrs, zoneAddr{Zone: plugin.Name(hosts[i]).Normalize(), Port: port, Transport: trans})
}
}