From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTh0Q-000072-Et for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:57:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTh0M-00005R-Pv for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:57:34 -0400 Received: from [199.232.76.173] (port=56236 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTh0M-00005J-ES for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:57:30 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:42217) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTh0L-0005KH-OA for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:57:30 -0400 Message-ID: <4A67610F.5090204@web.de> Date: Wed, 22 Jul 2009 20:57:19 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1248285441.30567.12.camel@localhost.localdomain> In-Reply-To: <1248285441.30567.12.camel@localhost.localdomain> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF587BFFFAE1E9B18011CE6FE" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [PATCH] slirp: Read host DNS config on demand List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ed Swierk Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF587BFFFAE1E9B18011CE6FE Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Ed Swierk wrote: > Currently the qemu user-mode networking stack reads the host DNS > configuration (/etc/resolv.conf or the Windows equivalent) only once > when qemu starts. This causes name lookups in the guest to fail if the= > host is moved to a different network from which the original DNS server= s > are unreachable, a common occurrence when the host is a laptop. >=20 > This patch changes the slirp code to read the host DNS configuration on= > demand, caching the results for 10 seconds to avoid unnecessary overhea= d > if name lookups occur in rapid succession. Nice. I noticed this, too, and shortly thought about some possible fixes. Don't know why I dropped it again. Anyway, your approach looks straightforward. Please rebase over git head, and I will happily test and ack it! Thanks, Jan --------------enigF587BFFFAE1E9B18011CE6FE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkpnYQ8ACgkQniDOoMHTA+nlewCeKwkyWOHPS5bOe0fQZvjTq7GP fesAn22FEzP8Ewxd+JJRbrfuyEafBlAm =0LBb -----END PGP SIGNATURE----- --------------enigF587BFFFAE1E9B18011CE6FE--