public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/3] Allow non-127.0.0.1 loopback address as host resolver
@ 2023-02-23 17:07 Stefano Brivio
  2023-02-23 17:07 ` [PATCH 1/3] udp: Actually use host resolver to forward DNS queries Stefano Brivio
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Stefano Brivio @ 2023-02-23 17:07 UTC (permalink / raw)
  To: passt-dev; +Cc: Andrea Bolognani

This series fixes an issue with DNS resolution reported by Andrea: if
both guest and host use systemd-resolved, reachable at 127.0.0.53, we
need to advertise a reachable address as DNS to the guest, which we
already do, but also to map UDP packets for that address and port 53
to the original host resolver address.

Otherwise, DNS resolution doesn't work at all in the guest, with
default options.

Stefano Brivio (3):
  udp: Actually use host resolver to forward DNS queries
  conf: Split add_dns{4,6}() out of get_dns()
  conf, udp: Allow any loopback address to be used as resolver

 conf.c | 92 ++++++++++++++++++++++++++++++++++++----------------------
 udp.c  | 20 ++++++-------
 2 files changed, 67 insertions(+), 45 deletions(-)

-- 
2.39.1


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

end of thread, other threads:[~2023-02-27 13:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 17:07 [PATCH 0/3] Allow non-127.0.0.1 loopback address as host resolver Stefano Brivio
2023-02-23 17:07 ` [PATCH 1/3] udp: Actually use host resolver to forward DNS queries Stefano Brivio
2023-02-27 12:02   ` David Gibson
2023-02-23 17:07 ` [PATCH 2/3] conf: Split add_dns{4,6}() out of get_dns() Stefano Brivio
2023-02-27 12:04   ` David Gibson
2023-02-23 17:08 ` [PATCH 3/3] conf, udp: Allow any loopback address to be used as resolver Stefano Brivio
2023-02-27 12:07   ` David Gibson
2023-02-23 17:53 ` [PATCH 0/3] Allow non-127.0.0.1 loopback address as host resolver Andrea Bolognani

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).