From mboxrd@z Thu Jan 1 00:00:00 1970 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 344D25A0268 for ; Thu, 23 Feb 2023 18:53:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677174822; 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: in-reply-to:in-reply-to:references:references; bh=BcvaphoeZNF3+7qSSbVNzO8GXaVHLxDP/1G0gVTeFJ8=; b=GsGUQVAxi2jKHEqKitZm2D+UWWa3rWwnCroqe+4Zg4l+dcworvTeAR/QbjlGXWg9ILbJem KeJkqn8GDDHoH5KhPhVQON0Wj336c9/1AetPrBuFgn2JNgYtL00Oijgyp4LQEV3BNab5Y0 H4uO7fYoOYDp7iBSdI7WHUOa5pG2cPk= Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-149-rlp7oa0COJCDK2SMa0XliA-1; Thu, 23 Feb 2023 12:53:40 -0500 X-MC-Unique: rlp7oa0COJCDK2SMa0XliA-1 Received: by mail-pj1-f69.google.com with SMTP id fa3-20020a17090af0c300b002377eefb6acso223483pjb.3 for ; Thu, 23 Feb 2023 09:53:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:in-reply-to:mime-version:references :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BcvaphoeZNF3+7qSSbVNzO8GXaVHLxDP/1G0gVTeFJ8=; b=YIDtTA2TPjfC2pGi7Jikdu21plld5MbY13Q7S/UWqL5DgPD9z1WezX3ViTkNJtzSJd J6SD5OpLccNn/24t1cwpFpiKml8ynqUrUmMDXmj8PzKNuOX+sDJyR6aHICRlVC600d3K JEIM/tBl1jUEvjnZ3m/vvxmJTtJEvv6rz6mlhhOyZkVWexA/uHnGgkTURuYFNxTkzAIq NkpQoIjHIx2XmjssC+3h9K7JZ58SBd5yCxF0XKJB6E+hhDVkNPy4/+ibI2bh4JtjSZjT 9so9Xp7d7bzwysdiF+8dYmKD76wTOeZU9FG0de6h38w5b3UYKdQaEoj+p7652rKQPONW Y/CA== X-Gm-Message-State: AO0yUKW2gGiKzBVRMklA2lvMDNLjOu1nhZO4A3YT8Pzu6ixOmGRNCAnc l2QMh94KPxqTWD6HdklosD0CvzUiOaadxY0KPYEGrVtg1wXrkcAM7CsqHPtV6aJ62NgHWyBFEJM VJ98urdowiineYtOrQDYz/F4mjhQU X-Received: by 2002:a17:903:13cf:b0:19a:fa2f:559e with SMTP id kd15-20020a17090313cf00b0019afa2f559emr2771163plb.3.1677174819503; Thu, 23 Feb 2023 09:53:39 -0800 (PST) X-Google-Smtp-Source: AK7set8vMA/gcmOKTtCd/lVuMAcMV0Lv2seq95XxUEaREQvN/iYtBLZlc2h3ZtSloiP1zml1nBnk9wiXGAwstGJvres= X-Received: by 2002:a17:903:13cf:b0:19a:fa2f:559e with SMTP id kd15-20020a17090313cf00b0019afa2f559emr2771154plb.3.1677174819183; Thu, 23 Feb 2023 09:53:39 -0800 (PST) Received: from 744723338238 named unknown by gmailapi.google.com with HTTPREST; Thu, 23 Feb 2023 09:53:38 -0800 From: Andrea Bolognani References: <20230223170800.3888094-1-sbrivio@redhat.com> MIME-Version: 1.0 In-Reply-To: <20230223170800.3888094-1-sbrivio@redhat.com> Date: Thu, 23 Feb 2023 09:53:38 -0800 Message-ID: Subject: Re: [PATCH 0/3] Allow non-127.0.0.1 loopback address as host resolver To: Stefano Brivio X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: KU6I2CJCQX6NHUIW75HZUJ6CQKQVI6KN X-Message-ID-Hash: KU6I2CJCQX6NHUIW75HZUJ6CQKQVI6KN X-MailFrom: abologna@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, Feb 23, 2023 at 06:07:57PM +0100, Stefano Brivio wrote: > 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 I haven't really looked at the changes, nor do I have any expectation that I would understand them if I did, but applying this series takes things from "kinda works, in some cases, at glacial speed, after tweaking the configuration manually" to "works out of the box, with reasonable speed and no noticeable issues" on my setup. Thanks a lot for looking into it! Tested-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization