public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: passt-dev@passt.top, Paul Holzinger <pholzing@redhat.com>
Subject: Re: [PATCH] conf: Handle addresses passed via --dns just like the ones from resolv.conf
Date: Thu, 14 Mar 2024 05:54:10 +0100	[thread overview]
Message-ID: <20240314055348.421e7622@elisabeth> (raw)
In-Reply-To: <ZfJeHgPkLAUBQn1f@zatzit>

On Thu, 14 Mar 2024 13:17:02 +1100
David Gibson <david@gibson.dropbear.id.au> wrote:

> On Tue, Mar 12, 2024 at 08:21:36AM +0100, Stefano Brivio wrote:
> > ...that is, call add_dns4() and add_dns6() instead of simply adding
> > those to the list of servers we advertise.
> > 
> > Most importantly, this will set the 'dns_host' field for the matching
> > IP version, so that, as mentioned in the man page, servers passed via
> > --dns are used for DNS mapping as well, if used in combination with
> > --dns-forward.
> > 
> > Reported-by: Paul Holzinger <pholzing@redhat.com>
> > Link: https://bugs.passt.top/show_bug.cgi?id=82
> > Fixes: 89678c515755 ("conf, udp: Introduce basic DNS forwarding")
> > Signed-off-by: Stefano Brivio <sbrivio@redhat.com>  
> 
> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> 
> This does subtly change semantics: addresses given to --dns are now
> host addresses, rather than guest addresses.  I think the new meaning
> is less cryptic, though.

Right, yes. But as we introduced the feature, the man page said, from
the beginning:

  -D, --dns addr
      Use addr (IPv4 or IPv6) for DHCP, DHCPv6, NDP or DNS forwarding [...]

so we have to change/fix semantics, I guess.

-- 
Stefano


  reply	other threads:[~2024-03-14  4:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12  7:21 [PATCH] conf: Handle addresses passed via --dns just like the ones from resolv.conf Stefano Brivio
2024-03-12 10:20 ` Paul Holzinger
2024-03-14  2:17 ` David Gibson
2024-03-14  4:54   ` Stefano Brivio [this message]
2024-03-14  5:08     ` David Gibson

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=20240314055348.421e7622@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=pholzing@redhat.com \
    /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.
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).