Lines Matching refs:dns

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
2245 if (DBG) loge("Exception resetting dns cache: " + e);
2268 * host routes should be set to the dns servers
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());
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