This actually requires that the layout under the zone entry follows
a tree model. ENTs are entries for which no record could be found.
}
}
}
+
+ if ( !has_records ) {
+ // This is an ENT
+ DNSResult local_result = result_template;
+ local_result.qname = domain;
+ if ( !d_result.count( "PdnsRecordOrdername" ) || d_result["PdnsRecordOrdername"].empty() ) {
+ // An ENT with an order name is authoritative
+ local_result.auth = false;
+ }
+ d_results_cache.push_back( local_result );
+ }
}
std::string value;
bool auth;
std::string ordername;
+
+ DNSResult()
+ : ttl( 0 ), lastmod( 0 ), value( "" ), auth( true ), ordername( "" )
+ {
+ }
};
std::list<DNSResult> d_results_cache;