qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] slirp: Read host DNS config on demand


From: Jan Kiszka
Subject: [Qemu-devel] Re: [PATCH] slirp: Read host DNS config on demand
Date: Wed, 22 Jul 2009 20:57:19 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

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: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]