public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>
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 16:08:21 +1100	[thread overview]
Message-ID: <ZfKGRe94AOuTLB9A@zatzit> (raw)
In-Reply-To: <20240314055348.421e7622@elisabeth>

[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]

On Thu, Mar 14, 2024 at 05:54:10AM +0100, Stefano Brivio wrote:
> 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.

Right, it's not really clear from the man page whether it's a host or
guest address.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2024-03-14  5:08 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
2024-03-14  5:08     ` David Gibson [this message]

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