DESEC: populate zone cache after creating zone

This commit is contained in:
Jakob Ackermann 2025-01-08 22:03:00 +01:00
parent 2461f3dc50
commit 951f7b0e40
No known key found for this signature in database
GPG key ID: 17FA08AA7E62A231

View file

@ -262,6 +262,11 @@ func (c *desecProvider) createDomain(domain string) error {
}
printer.Printf("To enable DNSSEC validation for your domain, make sure to convey the DS record(s) to your registrar:\n")
printer.Printf("%+q", dm.Keys)
c.domainIndexLock.Lock()
defer c.domainIndexLock.Unlock()
if c.domainIndex != nil {
c.domainIndex[domain] = dm.MinimumTTL
}
return nil
}