::arg().setSwitch("views", "Enable views (variants) of zones, for backends which support them") = "no";
+ // FIXME520: remove when branching 5.2
+ ::arg().set("entropy-source", "") = "";
+ ::arg().set("rng", "") = "";
+
::arg().setDefaults();
}
::arg().laxFile(configname.c_str());
::arg().laxParse(argc, argv); // reparse so the commandline still wins
+
+ // FIXME520: remove when branching 5.2
+ if (!::arg()["entropy-source"].empty()) {
+ std::cerr << "WARNING: `entropy-source' setting is deprecated" << std::endl
+ << "and will be removed in a future version" << std::endl;
+ }
+ if (!::arg()["rng"].empty()) {
+ std::cerr << "WARNING: `rng' setting is deprecated" << std::endl
+ << "and will be removed in a future version" << std::endl;
+ }
+
if (!::arg()["logging-facility"].empty()) {
int val = logFacilityToLOG(::arg().asNum("logging-facility"));
if (val >= 0)
static void loadMainConfig(const std::string& configdir)
{
+ // FIXME520: remove when branching 5.2
+ ::arg().set("entropy-source", "") = "";
+ ::arg().set("rng", "") = "";
+
::arg().set("config-dir","Location of configuration directory (pdns.conf)")=configdir;
::arg().set("default-ttl","Seconds a result is valid if not set otherwise")="3600";
::arg().set("launch","Which backends to launch");
::arg().setSwitch("views", "Enable views (variants) of zones, for backends which support them") = "no";
::arg().laxFile(configname);
+ // FIXME520: remove when branching 5.2
+ if (!::arg()["entropy-source"].empty()) {
+ std::cerr << "WARNING: `entropy-source' setting is deprecated" << std::endl
+ << "and will be removed in a future version" << std::endl;
+ }
+ if (!::arg()["rng"].empty()) {
+ std::cerr << "WARNING: `rng' setting is deprecated" << std::endl
+ << "and will be removed in a future version" << std::endl;
+ }
+
if(!::arg()["load-modules"].empty()) {
vector<string> modules;
::arg().set("zone-metadata-cache-ttl", "Seconds to cache zone metadata from the database") = "60";
::arg().set("consistent-backends", "Assume individual zones are not divided over backends. Send only ANY lookup operations to the backend to reduce the number of lookups") = "yes";
-
// Keep this line below all ::arg().set() statements
if (! ::arg().laxFile(configname)) {
cerr<<"Warning: unable to read configuration file '"<<configname<<"': "<<stringerror()<<endl;