summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
Diffstat (limited to 'net/base')
-rw-r--r--net/base/dnsrr_resolver.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/base/dnsrr_resolver.cc b/net/base/dnsrr_resolver.cc
index 7a872dd..8c041d9 100644
--- a/net/base/dnsrr_resolver.cc
+++ b/net/base/dnsrr_resolver.cc
@@ -281,6 +281,12 @@ class ResolveTask : public Task {
static const int RES_USE_DNSSEC = 0;
#endif
+#ifndef RES_USE_EDNS0
+ // Some versions of glibc are so old that they don't support EDNS0 either.
+ // http://code.google.com/p/chromium/issues/detail?id=51676
+ static const int RES_USE_EDNS0 = 0;
+#endif
+
// We set the options explicitly. Note that this removes several default
// options: RES_DEFNAMES and RES_DNSRCH (see res_init(3)).
_res.options = RES_INIT | RES_RECURSE | RES_USE_EDNS0 | RES_USE_DNSSEC;