From 211e704b808042906d4034e2869ab9fe9169f57d Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Thu, 1 Dec 2016 10:50:22 +0100 Subject: [PATCH] Print $ORIGIN . on list-zone, so the output can be used in load-zone --- pdns/pdnsutil.cc | 1 + 1 file changed, 1 insertion(+) 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] != '.') -- 2.47.3