From: Mark Schouten Date: Thu, 1 Dec 2016 09:50:22 +0000 (+0100) Subject: Print $ORIGIN . on list-zone, so the output can be used in load-zone X-Git-Tag: dnsdist-1.1.0~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=211e704b808042906d4034e2869ab9fe9169f57d;p=thirdparty%2Fpdns.git Print $ORIGIN . on list-zone, so the output can be used in load-zone --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 5c924b3bef..074668e017 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -883,6 +883,7 @@ int listZone(const DNSName &zone) { } di.backend->list(zone, di.id); DNSResourceRecord rr; + cout<<"$ORIGIN ."<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] != '.')