From d16a2ccf2e018c0ac15d239c7e9dd4dea7a92600 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 10 Dec 2015 16:42:40 +0100 Subject: [PATCH] zone2sql: support --zone without --zone-name This *does* mean that $ORIGIN must be set in the zone file. Closes #2838 --- pdns/zone2sql.cc | 16 +++++++++++++--- pdns/zoneparser-tng.cc | 5 +++++ pdns/zoneparser-tng.hh | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pdns/zone2sql.cc b/pdns/zone2sql.cc index aef679de3..b38207663 100644 --- a/pdns/zone2sql.cc +++ b/pdns/zone2sql.cc @@ -431,20 +431,30 @@ try cerr<<"\r100% done\033\133\113"< 0) diff --git a/pdns/zoneparser-tng.hh b/pdns/zoneparser-tng.hh index 2993c9fd3..94fea3b2e 100644 --- a/pdns/zoneparser-tng.hh +++ b/pdns/zoneparser-tng.hh @@ -39,6 +39,7 @@ public: bool get(DNSResourceRecord& rr, std::string* comment=0); typedef runtime_error exception; typedef deque > parts_t; + DNSName getZoneName(); string getLineOfFile(); private: bool getLine(); -- 2.40.0