This commit fixes two issues:
- if the existing zone name is not empty we should use it, instead of
the zone domain
- if the zone domain has to be used, it should not include a final dot
(cherry picked from commit
3e86a970828dda814a140c9613311a8507c3c458)
time_t refresh;
DNSName zoneName = oldZone->getDomain();
- std::string polName = oldZone->getName().empty() ? oldZone->getName() : zoneName.toString();
+ std::string polName = !oldZone->getName().empty() ? oldZone->getName() : zoneName.toStringNoDot();
while (!sr) {
/* if we received an empty sr, the zone was not really preloaded */