]> granicus.if.org Git - pdns/commitdiff
kill getAuth function that keeps reappearing
authorMark Zealey <mark@markandruth.co.uk>
Mon, 6 Jan 2014 15:46:00 +0000 (17:46 +0200)
committerMark Zealey <mark@markandruth.co.uk>
Mon, 6 Jan 2014 15:46:00 +0000 (17:46 +0200)
pdns/packethandler.cc

index 7143a071b3cd1fb13bb1e7e064eb2ca0083c3c82..a92c2294ca77efe0aab0a5474e3b868b0f334eeb 100644 (file)
@@ -313,28 +313,6 @@ int PacketHandler::doChaosRequest(DNSPacket *p, DNSPacket *r, string &target)
   return 0;
 }
 
-/** Determines if we are authoritative for a zone, and at what level */
-bool PacketHandler::getAuth(DNSPacket *p, SOAData *sd, const string &target, int *zoneId)
-{
-  bool found=false;
-  string subdomain(target);
-  do {
-    if( B.getSOA( subdomain, *sd, p ) ) {
-      sd->qname = subdomain;
-      if(zoneId)
-        *zoneId = sd->domain_id;
-
-      if(p->qtype.getCode() == QType::DS && pdns_iequals(subdomain, target)) {
-        // Found authoritative zone but look for parent zone with 'DS' record.
-        found=true;
-      } else
-        return true;
-    }
-  }
-  while( chopOff( subdomain ) );   // 'www.powerdns.org' -> 'powerdns.org' -> 'org' -> ''
-  return found;
-}
-
 vector<DNSResourceRecord> PacketHandler::getBestReferralNS(DNSPacket *p, SOAData& sd, const string &target)
 {
   vector<DNSResourceRecord> ret;