You should make sure that the :ref:`setting-resolver` does not point to
PowerDNS itself, to prevent infinite query loops.
+
+It is strongly advised to only have one ALIAS record per RRset.
+If there are multiple ALIAS records with the same name, only the first one
+will be used to query the resolver. Prior to version 5.1.0, the last one
+was used instead. Remember that the order in which ALIAS records will be
+retrieved is backend-dependent.
+
.. _alias_axfr:
AXFR Zone transfers
g_log<<Logger::Info<<"ALIAS record found for "<<state.target<<", but ALIAS expansion is disabled."<<endl;
continue;
}
- haveAlias=getRR<ALIASRecordContent>(zrr.dr)->getContent();
- aliasScopeMask=zrr.scopeMask;
+ // DNSProxy::completePacket(), in its current state, can only process one
+ // alias if !state.r->d_tcp, so ignore any further ALIAS results (but
+ // warn about them)
+ if (haveAlias.empty()) {
+ haveAlias=getRR<ALIASRecordContent>(zrr.dr)->getContent();
+ aliasScopeMask=zrr.scopeMask;
+ }
+ else {
+ g_log << Logger::Warning << "extra ALIAS record for " << state.target << ", contents " << getRR<ALIASRecordContent>(zrr.dr)->getContent() << " ignored." << endl;
+ }
}
// Filter out all SOA's and add them in later