property_tree::ptree config;
property_tree::ini_parser::read_ini(CONFIG_FILE, config);
std::string nsupdate = config.get<std::string>("nsupdate");
property_tree::ptree config;
property_tree::ini_parser::read_ini(CONFIG_FILE, config);
std::string nsupdate = config.get<std::string>("nsupdate");
/* Check username, password, domain */
optional<std::string> correct_password = config.get_optional<std::string>(user+".password");
/* Check username, password, domain */
optional<std::string> correct_password = config.get_optional<std::string>(user+".password");
- execl(nsupdate.c_str(), nsupdate.c_str(), "-k", keyfile.c_str(), NULL);
+ execl(nsupdate.c_str(), nsupdate.c_str(), "-l", (char *)NULL);
write(pipe_ends[1], "update delete ");
write(pipe_ends[1], domain.c_str());
write(pipe_ends[1], "update delete ");
write(pipe_ends[1], domain.c_str());
write(pipe_ends[1], "update add ");
write(pipe_ends[1], domain.c_str());
write(pipe_ends[1], "update add ");
write(pipe_ends[1], domain.c_str());