checker: join recorded owner Hdr.Name to parent FQDN
This commit is contained in:
parent
35d44963a2
commit
59d66153ee
1 changed files with 4 additions and 2 deletions
|
|
@ -193,11 +193,13 @@ func computeOwner(body serviceBody, prefix, parent string) (expected, recorded s
|
|||
// Normalise: no double dots.
|
||||
expected = strings.Replace(expected, "..", ".", -1)
|
||||
}
|
||||
// happyDomain encodes service-embedded record owners relative to the
|
||||
// parent zone, so we must join with parent before treating as FQDN.
|
||||
switch {
|
||||
case body.OpenPGP != nil && body.OpenPGP.Hdr.Name != "":
|
||||
recorded = dns.Fqdn(body.OpenPGP.Hdr.Name)
|
||||
recorded = dns.Fqdn(sdk.JoinRelative(body.OpenPGP.Hdr.Name, parent))
|
||||
case body.SMIMEA != nil && body.SMIMEA.Hdr.Name != "":
|
||||
recorded = dns.Fqdn(body.SMIMEA.Hdr.Name)
|
||||
recorded = dns.Fqdn(sdk.JoinRelative(body.SMIMEA.Hdr.Name, parent))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue