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");
/* Given the domain, check whether the password matches */
optional<std::string> correct_password = config.get_optional<std::string>(path(domain+"/password", '/'));
/* Given the domain, check whether the password matches */
optional<std::string> correct_password = config.get_optional<std::string>(path(domain+"/password", '/'));
- execl(nsupdate.c_str(), nsupdate.c_str(), "-l", (char *)NULL);
+ execl(nsupdate.c_str(), nsupdate.c_str(), "-p", std::to_string(server_port).c_str(), "-l", (char *)NULL);