Lines Matching refs:servers
44 const char** servers, int numservers, const __res_params* params) {
48 return -_resolv_set_nameservers_for_net(netId, servers, numservers, searchDomains, params);
69 int ResolverController::getDnsInfo(unsigned netId, std::vector<std::string>* servers,
88 servers->clear();
95 // If the netId is unknown (which can happen for valid net IDs for which no DNS servers have
107 // Determine which servers are considered usable by the resolver.
125 servers->push_back(std::move(server_str));
141 const std::vector<std::string>& servers, const std::vector<std::string>& domains,
149 auto server_count = std::min<size_t>(MAXNS, servers.size());
152 server_ptrs.push_back(servers[i].c_str());
173 int ResolverController::getResolverInfo(int32_t netId, std::vector<std::string>* servers,
180 int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats);
199 std::vector<std::string> servers;
204 int rv = getDnsInfo(netId, &servers, &domains, ¶ms, &stats);
209 if (servers.empty()) {
210 dw.println("No DNS servers defined");
212 dw.println("DNS servers: # IP (total, successes, errors, timeouts, internal errors, "
215 for (size_t i = 0 ; i < servers.size() ; ++i) {
221 dw.println("%s (%d, %d, %d, %d, %d, %dms, %ds)%s", servers[i].c_str(),
225 dw.println("%s <no data>", servers[i].c_str());
228 dw.println("%s <no stats>", servers[i].c_str());