From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1754478595; bh=Xii9FcUc53qhTV76KYLB231DBYQzbOjrmZSOu86jVOU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=kLXWiCvELCVJqazxm5T9eQFMpeSmxWED/K2FuI/zKJ1oIoQbMW2bRSCqxXj/m321W ItS+5+Ctu6OCaJ+45y9Pd0LvI/cp7tu2/gYw+biZPn95goLf9JYSZqyIfN+wNBqAfO 9pWfMn6Q9UJZ/WPFdxz032vzzV6Q9v3Lli41OhTHxeMg/LHICPyvQKijoSwZVPQzod bzjoPxx47RX5uB15vcstNIJT523Cit8DvUz2dPPa1VzSlqc00iS+3YPy6fp2KtuCJ+ WZFf2NKXR+9HqeZkdeWTqe5G06E9vJVp5xS8BIHiw3eBpoe3FwpxzWlMA9vXqtDpbh WQmVdcNiH2RzA== Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 47E3B3127B7C for ; Wed, 6 Aug 2025 11:09:55 +0000 (UTC) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2406fe901fcso54977365ad.3 for ; Wed, 06 Aug 2025 04:09:55 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXN3LWCAWG7K/YYTMfxsF4jX7spmXFOB0V7yfpXmNM5sRWgA81SbNqlQaTL9lRpYtzY4XJq@vger.gnuweeb.org X-Gm-Message-State: AOJu0Yzvojlvl4gPjZJQhcUF03a787M8UUwD7ECYATYa8SRHPKOeQBYx Pv5LFK+Bhyf2tiP03gerdWBiYNipjsmkr3aTGvZmWSs0wbySBKFw6/5si54r60f6iuU13u1aLxr J7si2yaU48vpl5CShjNmPQfRnOhudUr4= X-Google-Smtp-Source: AGHT+IFEpPONV21RIIp/cp0yHdmXQIFMz09V3i0Jka9KDMFRgBs9gozF0GfwPldk1TWRLwvv0R3LeWn8Jx4J0cc0PXA= X-Received: by 2002:a17:902:f709:b0:242:9bc6:63c6 with SMTP id d9443c01a7336-242a0ba2b0bmr28869175ad.57.1754478593565; Wed, 06 Aug 2025 04:09:53 -0700 (PDT) MIME-Version: 1.0 References: <20250806035727.216702-1-reyuki@gnuweeb.org> <20250806035727.216702-5-reyuki@gnuweeb.org> In-Reply-To: <20250806035727.216702-5-reyuki@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Wed, 6 Aug 2025 18:09:42 +0700 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXw8gcC6afK1KUpPLY6KIb8fKndpAetgptZjIFAunFB_E5Q7Jiuuob-smu8 Message-ID: Subject: Re: [PATCH gwproxy v4 4/6] dnslookup: Initial work for implementation of C-ares-like getaddrinfo function To: Ahmad Gani Cc: Ammar Faizi , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: On Wed, Aug 6, 2025 at 10:57=E2=80=AFAM Ahmad Gani wrote: > Introducing glibc's getaddrinfo replacement, the DNS protocol > implementation is limited to standard query (OPCODE_QUERY) as for now, > but may extended later as necessary. Thinking about this further, I think this design is wrong. The DNS library is expected to only handle bytes processing, leaving the networking stack to the caller. Think, how is it going to be integrated with io_uring? We should let the caller perform the recv and send. This library doesn't need to care about the networking stack at all. Make it the caller's responsibility to feed the library with bytes from the network. -- Viro