fn check_apex_ns_address(zone: &Zone, nsdname: Box<Name>, issues: &mut Vec<ValidationIssue>) {
    match zone.lookup_all(&nsdname) {
        LookupAllResult::Found(rrsets) => {
            if !has_address(rrsets) {
                issues.push(ValidationIssue::MissingNsAddress(nsdname));
            }
        }
        LookupAllResult::WrongZone | LookupAllResult::Referral(_, _) => (),
        LookupAllResult::NxDomain => issues.push(ValidationIssue::MissingNsAddress(nsdname)),
    }
}
/// Ensures that, if an apex NS record specifies a nameserver whose name
/// is in the zone, an address record for it is present (check 8).
Ensures that, if an apex NS record specifies a nameserver whose name
is in the zone, an address record for it is present (check 8).
Ensures that if an apex NS record specifies a nameserver whose name is in the zone an address record for it is present ( check 8 ) .
fn check_apex_ns_address(zone: &Zone, nsdname: Box<Name>, issues: &mut Vec<ValidationIssue>) {
    match zone.lookup_all(&nsdname) {
        LookupAllResult::Found(rrsets) => {
            if !has_address(rrsets) {
                issues.push(ValidationIssue::MissingNsAddress(nsdname));
            }
        }
        LookupAllResult::WrongZone | LookupAllResult::Referral(_, _) => (),
        LookupAllResult::NxDomain => issues.push(ValidationIssue::MissingNsAddress(nsdname)),
    }
}
fn check_apex_ns_address ( zone : & Zone , nsdname : Box < Name > , issues : & mut Vec < ValidationIssue > ) { match zone . lookup_all ( & nsdname ) { LookupAllResult :: Found ( rrsets ) => { if ! has_address ( rrsets ) { issues . push ( ValidationIssue :: MissingNsAddress ( nsdname ) ) ; } } LookupAllResult :: WrongZone | LookupAllResult :: Referral ( _ , _ ) => ( ) , LookupAllResult :: NxDomain => issues . push ( ValidationIssue :: MissingNsAddress ( nsdname ) ) , } }
Ensures that, if an apex NS record specifies a nameserver whose name
is in the zone, an address record for it is present (check 8).
Ensures that if an apex NS record specifies a nameserver whose name is in the zone an address record for it is present ( check 8 ) .
zone
&Zone
nsdname
Box<Name>
issues
&mut Vec<ValidationIssue>
zone
&Zone
nsdname
Box<Name>
issues
&mut Vec<ValidationIssue>