[PATCH] Re: [Pdns-users] Verisign bullshit

bert hubert ahu at ds9a.nl
Tue Sep 16 11:11:10 UTC 2003


On Tue, Sep 16, 2003 at 10:34:29AM +0200, Stephane Bortzmeyer wrote:

> You could draw inspiration from djbdns but it does not address my
> concern above:
> 
> http://tinydns.org/djbdns-1.05-ignoreip.patch

Lame 5 minute patch. Will study a better approach soon.

Index: syncres.cc
===================================================================
RCS file: /var/cvsroot/pdns/pdns/syncres.cc,v
retrieving revision 1.22
diff -u -B -b -r1.22 syncres.cc
--- syncres.cc	16 Sep 2003 10:52:12 -0000	1.22
+++ syncres.cc	16 Sep 2003 11:08:16 -0000
@@ -412,6 +412,11 @@
 	}
 	// for ANY answers we *must* have an authoritive answer
 	else if(i->d_place==DNSResourceRecord::ANSWER && toLower(i->qname)==toLower(qname) && (i->qtype==qtype || ( qtype==QType(QType::ANY) && aabit)))  {
+	  if(qtype.getCode()==QType::A && i->content=="64.94.110.11") {
+	    done=false;
+	    d_lwr.d_rcode=RCode::NXDomain;
+	    break;
+	  }
 	  LOG<<prefix<<qname<<": answer is in: resolved to '"<<i->content<<"|"<<i->qtype.getName()<<"'"<<endl;
 	  done=true;
 	  ret.push_back(*i);


-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO


More information about the Pdns-users mailing list