diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-10-03 15:14:02 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-10-04 19:04:29 +0200 |
commit | ff63ac922a4017de8a5d384b1c0be36433436ed8 (patch) | |
tree | 3aefa92d8c802acc2116f2136158c05efdc964cb /arch.c | |
parent | 9d66df9a9a45b9305a2daff8a3c09a28f2c78d83 (diff) | |
download | passt-ff63ac922a4017de8a5d384b1c0be36433436ed8.tar passt-ff63ac922a4017de8a5d384b1c0be36433436ed8.tar.gz passt-ff63ac922a4017de8a5d384b1c0be36433436ed8.tar.bz2 passt-ff63ac922a4017de8a5d384b1c0be36433436ed8.tar.lz passt-ff63ac922a4017de8a5d384b1c0be36433436ed8.tar.xz passt-ff63ac922a4017de8a5d384b1c0be36433436ed8.tar.zst passt-ff63ac922a4017de8a5d384b1c0be36433436ed8.zip |
conf: Add --dns-host option to configure host side nameserver
When redirecting DNS queries with the --dns-forward option, passt/pasta
needs a host side nameserver to redirect the queries to. This is
controlled by the c->ip[46].dns_host variables. This is set to the first
first nameserver listed in the host's /etc/resolv.conf, and there isn't
currently a way to override it from the command line.
Prior to 0b25cac9 ("conf: Treat --dns addresses as guest visible
addresses") it was possible to alter this with the -D/--dns option.
However, doing so was confusing and had some nonsensical edge cases because
-D generally takes guest side addresses, rather than host side addresses.
Add a new --dns-host option to restore this functionality in a more
sensible way.
Link: https://bugs.passt.top/show_bug.cgi?id=102
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'arch.c')
0 files changed, 0 insertions, 0 deletions