]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Print $ORIGIN . on list-zone, so the output can be used in load-zone 4719/head
authorMark Schouten <mark@tuxis.nl>
Thu, 1 Dec 2016 09:50:22 +0000 (10:50 +0100)
committerMark Schouten <mark@tuxis.nl>
Thu, 1 Dec 2016 09:50:22 +0000 (10:50 +0100)
pdns/pdnsutil.cc

index 5c924b3bef9a8ab6bab91fb9835879c824a20a1e..074668e017a7e818cfbacda12e33c53f3cbb628e 100644 (file)
@@ -883,6 +883,7 @@ int listZone(const DNSName &zone) {
   }
   di.backend->list(zone, di.id);
   DNSResourceRecord rr;
+  cout<<"$ORIGIN ."<<endl;
   while(di.backend->get(rr)) {
     if(rr.qtype.getCode()) {
       if ( (rr.qtype.getCode() == QType::NS || rr.qtype.getCode() == QType::SRV || rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::CNAME) && !rr.content.empty() && rr.content[rr.content.size()-1] != '.')