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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d16a2ccf2e018c0ac15d239c7e9dd4dea7a92600;p=pdns 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 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();