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