All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Ed Swierk <eswierk@aristanetworks.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] slirp: Read host DNS config on demand
Date: Wed, 22 Jul 2009 20:57:19 +0200	[thread overview]
Message-ID: <4A67610F.5090204@web.de> (raw)
In-Reply-To: <1248285441.30567.12.camel@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

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 servers
> are unreachable, a common occurrence when the host is a laptop.
> 
> This patch changes the slirp code to read the host DNS configuration on
> demand, caching the results for 10 seconds to avoid unnecessary overhead
> 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

  reply	other threads:[~2009-07-22 18:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22 17:57 [Qemu-devel] [PATCH] slirp: Read host DNS config on demand Ed Swierk
2009-07-22 18:57 ` Jan Kiszka [this message]
2009-07-22 19:45   ` [Qemu-devel] " Ed Swierk
2009-07-22 20:04     ` Jan Kiszka
2009-07-22 23:27     ` malc
2009-07-23  6:47     ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A67610F.5090204@web.de \
    --to=jan.kiszka@web.de \
    --cc=eswierk@aristanetworks.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.