rrc.d_originalttl=signTTL;
rrc.d_siginception=getCurrentInception(3600); // 1 hour safety margin, we start dishing out new week after an hour
rrc.d_sigexpire = rrc.d_siginception + 14*86400; // XXX should come from zone metadata
- rrc.d_signer = toLower(signer);
+ rrc.d_signer = signer.empty() ? "." : toLower(signer);
rrc.d_tag = 0;
// we sign the RRSET in toSign + the rrc w/o hash
- DNSSECKeeper::keyset_t keys = dk.getKeys(rrc.d_signer);
+ DNSSECKeeper::keyset_t keys = dk.getKeys(signer); // we don't want the . for the root!
vector<DNSSECPrivateKey> KSKs, ZSKs;
vector<DNSSECPrivateKey>* signingKeys;
uint32_t theirserial = ssr.d_freshness[di.id].theirSerial, ourserial = di.serial;
if(rfc1982LessThan(theirserial, ourserial)) {
- L<<Logger::Error<<"Domain "<<di.zone<<" more recent than master, our serial " << ourserial << " > their serial "<< theirserial << endl;
+ L<<Logger::Error<<"Domain '"<<di.zone<<"' more recent than master, our serial " << ourserial << " > their serial "<< theirserial << endl;
di.backend->setFresh(di.id);
}
else if(theirserial == ourserial) {
if(!dk.isPresigned(di.zone)) {
- L<<Logger::Warning<<"Domain "<< di.zone<<" is fresh (not presigned, no RRSIG check)"<<endl;
+ L<<Logger::Warning<<"Domain '"<< di.zone<<"' is fresh (not presigned, no RRSIG check)"<<endl;
di.backend->setFresh(di.id);
}
else {
}
}
if(maxInception == ssr.d_freshness[di.id].theirInception && maxExpire == ssr.d_freshness[di.id].theirExpire) {
- L<<Logger::Warning<<"Domain "<< di.zone<<" is fresh and apex RRSIGs match"<<endl;
+ L<<Logger::Warning<<"Domain '"<< di.zone<<"' is fresh and apex RRSIGs match"<<endl;
di.backend->setFresh(di.id);
}
else {
- L<<Logger::Warning<<"Domain "<< di.zone<<" is fresh, but RRSIGS differ, so DNSSEC stale"<<endl;
+ L<<Logger::Warning<<"Domain '"<< di.zone<<"' is fresh, but RRSIGS differ, so DNSSEC stale"<<endl;
addSuckRequest(di.zone, *di.masters.begin());
}
}
}
else {
- L<<Logger::Warning<<"Domain "<< di.zone<<" is stale, master serial "<<theirserial<<", our serial "<< ourserial <<endl;
+ L<<Logger::Warning<<"Domain '"<< di.zone<<"' is stale, master serial "<<theirserial<<", our serial "<< ourserial <<endl;
addSuckRequest(di.zone, *di.masters.begin());
}
}