shill: Work around DNS timeouts due to faulty firewalls on IPv4+v6 connections

BUG=chromium-os:24002
TEST=Unit tests, manually loaded shill onto Alex, verify resolf.conf
contains the correct info, browsed web to ensure fast DNS response

Change-Id: I2bf1abb3eb2ae2f2949c28bacce736417ba5df3f
Reviewed-on: https://gerrit.chromium.org/gerrit/15977
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Tested-by: Thieu Le <thieule@chromium.org>
Commit-Ready: Thieu Le <thieule@chromium.org>
diff --git a/resolver.cc b/resolver.cc
index d0d4d7a..21dfb87 100644
--- a/resolver.cc
+++ b/resolver.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
@@ -60,6 +60,10 @@
     lines.push_back("search " + JoinString(domain_search, ' '));
   }
 
+  // Send queries one-at-a-time, rather than parallelizing IPv4
+  // and IPv6 queries for a single host.
+  lines.push_back("options single-request");
+
   // Newline at end of file
   lines.push_back("");