From: Pieter Lexis Date: Thu, 10 Dec 2015 15:42:40 +0000 (+0100) Subject: zone2sql: support --zone without --zone-name X-Git-Tag: dnsdist-1.0.0-alpha1~55^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d16a2ccf2e018c0ac15d239c7e9dd4dea7a92600;p=thirdparty%2Fpdns.git zone2sql: support --zone without --zone-name This *does* mean that $ORIGIN must be set in the zone file. Closes #2838 --- diff --git a/pdns/zone2sql.cc b/pdns/zone2sql.cc index aef679de34..b38207663f 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 2993c9fd30..94fea3b2e8 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();