Home | History | Annotate | Download | only in server

Lines Matching defs:dns

184      * used both as a refcount and for per-PID DNS selection
276 * used internally to restore DNS properties back to the
380 // read our default dns server ip
381 String dns = Settings.Global.getString(context.getContentResolver(),
383 if (dns == null || dns.length() == 0) {
384 dns = context.getResources().getString(
388 mDefaultDns = NetworkUtils.numericToInetAddress(dns);
390 loge("Error setting defaultDns using " + dns);
1152 // this gets used for per-pid dns when connected
1167 // add the pid-specific dns
1193 // this gets used for per-pid dns when connected
2152 * concerned with making sure that the list of DNS servers is set up
2161 * will allow it's DNS servers to be accessed.
2240 if (VDBG) log("resetting DNS cache for " + iface);
2245 if (DBG) loge("Exception resetting dns cache: " + e);
2268 * host routes should be set to the dns servers
2320 // handle DNS routes
2322 // routes changed - remove all old dns entries and add new
2334 // no change in routes, check for change in dns themselves
2402 * Adjust the per-process dns entries (net.dns<x>.<pid>) based
2434 String prop = "net.dns" + i + "." + myPid;
2449 for (InetAddress dns : dnses) {
2450 String dnsString = dns.getHostAddress();
2451 if (changed || !dnsString.equals(SystemProperties.get("net.dns" + j + "." + pid))) {
2453 SystemProperties.set("net.dns" + j + "." + pid, dns.getHostAddress());
2463 * the DNS server list from the properties.
2474 * Tell the VMs to toss their DNS caches
2500 loge("no dns provided for " + network + " - using " + value);
2506 for (InetAddress dns : dnses) {
2508 String key = "net.dns" + last;
2509 String value = dns.getHostAddress();
2514 log("adding dns " + value + " for " + network);
2521 String key = "net.dns" + i;
2533 if (DBG) loge("exception setting default dns interface: " + e);
2536 if (!domains.equals(SystemProperties.get("net.dns.search"))) {
2537 SystemProperties.set("net.dns.search", domains);
2544 // add default net's dns entries
2563 if (DBG) loge("exception setting dns servers: " + e);
2565 // set per-pid dns for attached secondary nets
3305 * needs to override DNS servers but never takes the default routes. It
3326 // Convert DNS servers into addresses.
3350 // Apply DNS changes.