From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZAOI9zgM; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id 7DA0E5A004C for ; Wed, 09 Oct 2024 10:21:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728462118; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BGUQfsICab4h9YyIOzurz7Jvce86gWVo8FcBeVuxbPE=; b=ZAOI9zgMgyV1kjUauHSxHngiIzaWdg5k8r0HJPj27KANUAEqv5ZBxuo52Yz3nqehxlKrDc ntk0WFHq1JVsOX2vzHRhcTFiFzSF4Zgd3Y8qZNhFMlVKtjYtOC8KjrL3UVdMFp05pkYAyr PKbMMB6x3MBpX1rctzLYfTRzUbP9LiU= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-267-ZHg7kqNkONSTACuSKW1ACA-1; Wed, 09 Oct 2024 04:21:56 -0400 X-MC-Unique: ZHg7kqNkONSTACuSKW1ACA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-42cc4345561so40128905e9.1 for ; Wed, 09 Oct 2024 01:21:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728462116; x=1729066916; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BGUQfsICab4h9YyIOzurz7Jvce86gWVo8FcBeVuxbPE=; b=U1f2Nk6WSPafExx/kgeVzQidXxNO63hQZ5a2W2r02oLskJVUraowRUkcobPhNJcRbz 9lezBf4TKjEwey5gIxHaErS0TDeg0sW/QPTrQREBgQ1D13wR8cjAgo+dOMNrkp6iHfxf x07NhKJ4yp9ah5+aO2Jxz5wKWOE9gJnnq+6Jd5uHUYDHTg01hJRifnVJilvqtKjeP7pi 4XZcsE0zh8BKl3xAzGWwmtHOhb4PGfmMMaRzMbbkarlo+rNUgHX29RY6stlwm2KRCSV8 szRJlrkmyiAz+YOO54lyhuNfGWFzmfP3Y839cgwBSUGbhX8EopRqv5evqTC/OKf3BB5X eJ/g== X-Gm-Message-State: AOJu0Yxfu4YDI6Wh8diMqC+tVrjnSSm74ycOdrqZe6nkw1ySTayn6JCF wRHnu3gKlj/VHiG+9jeQ8A+kxTu93Zd5BD+zTvAfZbfbNaH3E0giLleC34PiZTU6UWggFXsp6Vm yObQQvqkXNgj6G1byAI0tgHdCpYqIs0kPZhAUhkJ+MrLc2i+oLA== X-Received: by 2002:a05:600c:5117:b0:426:66e9:b844 with SMTP id 5b1f17b1804b1-430ccf1d836mr9776915e9.8.1728462115683; Wed, 09 Oct 2024 01:21:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCv5regOOBOyCq4A7Q6/lBARxNSiIz/Ivq/OLcqNz4OtuHzPIA6k+ak7q8rMBSsAXHhoFHbQ== X-Received: by 2002:a05:600c:5117:b0:426:66e9:b844 with SMTP id 5b1f17b1804b1-430ccf1d836mr9776755e9.8.1728462115210; Wed, 09 Oct 2024 01:21:55 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4304efc442esm34637025e9.1.2024.10.09.01.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 01:21:54 -0700 (PDT) Date: Wed, 9 Oct 2024 10:21:51 +0200 From: Stefano Brivio To: David Gibson Subject: Re: [PATCH] conf: Add --dns-host option to configure host side nameserver Message-ID: <20241009102151.652453de@elisabeth> In-Reply-To: <20241003051402.2548424-1-david@gibson.dropbear.id.au> References: <20241003051402.2548424-1-david@gibson.dropbear.id.au> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: AKQKN4FKM4LZGDECWEOHENQ4VYCX7YRG X-Message-ID-Hash: AKQKN4FKM4LZGDECWEOHENQ4VYCX7YRG X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 3 Oct 2024 15:14:02 +1000 David Gibson wrote: > 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 Applied. -- Stefano