public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* Improved handling of changing DNS resolvers
@ 2023-01-17 18:51 Noah Gold
  2023-01-21  9:47 ` Stefano Brivio
  0 siblings, 1 reply; 8+ messages in thread
From: Noah Gold @ 2023-01-17 18:51 UTC (permalink / raw)
  To: passt-dev

Hi folks,

libslirp and Passt have different approaches to sharing DNS resolvers with
the guest system, each with their own benefits & drawbacks. On the libslirp
project, we're discussing [1] how to support DNS failover. Passt already has
 support for this, but there is a drawback to its solution which prevents us
from taking a similar approach: the resolvers are read exactly once, so if the
host changes networks at runtime, the guest will not receive the updated
resolvers and thus its connectivity will break.

libslirp's current approach is to DNAT a single address exposed to the guest
to one of the resolvers configured on the host. The problem here is that if that
one resolver goes down, the guest can't resolve DNS names. We're
considering changing so that instead of a single address, we expose a set of
MAXNS addresses, and DNAT those 1:1 to the DNS resolvers registered with
the host. Because the DNAT table lives on the host side, we can refresh the
guest's resolvers whenever the host's resolvers change, but without the need to
expire a DHCP lease (even with short leases, the guest will still lose
connectivity
for a time).

Does this sound like an approach Passt would be open to adopting as well?

Thanks.

- Noah

[1] https://gitlab.freedesktop.org/slirp/libslirp/-/issues/26

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-14 15:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17 18:51 Improved handling of changing DNS resolvers Noah Gold
2023-01-21  9:47 ` Stefano Brivio
2023-01-23  6:20   ` David Gibson
2023-01-25 17:55     ` Stefano Brivio
2023-01-31  0:11     ` Noah Gold
2023-02-02 11:09       ` Stefano Brivio
2023-02-14  2:45         ` Noah Gold
2023-02-14 15:06           ` Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).