Skip to content

Instantly share code, notes, and snippets.

@Habbie
Created April 26, 2013 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Habbie/5466613 to your computer and use it in GitHub Desktop.
Save Habbie/5466613 to your computer and use it in GitHub Desktop.
rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl);
--- pdns_recursor.cc.orig 2007-06-05 14:46:08.000000000 +0200
+++ pdns_recursor.cc 2007-06-05 14:46:34.000000000 +0200
@@ -1377,7 +1377,7 @@
while(zpt.get(rr)) {
try {
string tmp=DNSRR2String(rr);
- rr=String2DNSRR(rr.qname, rr.qtype, tmp, 3600);
+ rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl);
}
catch(exception &e) {
throw AhuException("Error parsing record '"+rr.qname+"' of type "+rr.qtype.getName()+" in zone '"+headers.first+"' from file '"+headers.second+"': "+e.what());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment