2 PowerDNS Versatile Database Driven Nameserver
3 Copyright (C) 2002-2007 PowerDNS.COM BV
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License version 2
7 as published by the Free Software Foundation
9 Additionally, the license of this program contains a special
10 exception which allows to distribute the program in binary form when
11 it is linked against OpenSSL.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31 #include "namespaces.hh"
36 BindDomainInfo() : d_dev(0), d_ino(0)
41 name=filename=type="";
50 vector<string> masters;
51 set<string> alsoNotify;
57 bool operator<(const BindDomainInfo& b) const
59 return make_pair(d_dev, d_ino) < make_pair(b.d_dev, b.d_ino);
63 extern const char *bind_directory;
68 BindParser() : d_dir("."), d_verbose(false)
71 extern int include_stack_ptr;
74 bind_directory=d_dir.c_str();
83 void parse(const string &fname);
84 void commit(BindDomainInfo DI);
85 void setDirectory(const string &dir);
86 const string &getDirectory();
87 const vector<BindDomainInfo>& getDomains();
88 void setVerbose(bool verbose);
89 void addAlsoNotify(const string &host);
90 set<string> & getAlsoNotify() { return this->alsoNotify; }
93 typedef map<DNSName,string> zonedomain_t;
94 set<string> alsoNotify;
95 vector<BindDomainInfo> d_zonedomains;
99 #endif /* BINDPARSER_HH */