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=1759393183; bh=O3ByqAuBTlvVsQF+qnAMr/I7ORtm38xLdXUylu6seFc=; 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=mGL/jSJfbC8CjNxB1y/ajueMo7UFl93OffLx3uKoW7CCuvGRqCtdCSbrvAAyoQEuq iib0zCFEyzDPe3b9+2vxfDhK3fiW4OwpjOI/UzPOzWWw8+5ELsTZcw+usfphCcHbj3 WxzoGKuAmhkdbqW657e8cDuGgp4ypm9tNSRXpgDxfh03fDR3u2klApw3oyX8F+OkBP ok3QrqDeuSYe8eUgv0Jtel03BKslXylPrGiy5Vj+X17gKdqlZADM0Ol6zHi8au5eTt LTJlNH1TUU8zyE27YNaceSKUj8DQUo33igSEZhHVlB9vZVI5a67qLfzt6f2RkWa0eE FSEi19zQNmW4Q== Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id A4C1D3127991 for ; Thu, 2 Oct 2025 08:19:43 +0000 (UTC) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-33082c95fd0so916055a91.1 for ; Thu, 02 Oct 2025 01:19:43 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUmVKK5GeD9LPOLjPqtrpChqeiULD1Ub0imGbbDt80shbj89wbllAH2C/yji5j8rzl82XeJ@vger.gnuweeb.org X-Gm-Message-State: AOJu0YxWlJiEPhFpCQ1EQH38ruRELnE2nTPTNUy4QNYNyD45FYHTCY8d vQnKZV9th1a3NfcHITiZgaauMddZelyh2sfr2QnS8SLzveCFLe7gZygBsPmJodJ0RynmWhKRBK5 Lc9yc18acLO6egGEG56BV6LR9qZWd1jM= X-Google-Smtp-Source: AGHT+IElNVAg+VLdro0NmbJl2Yd6EBWJQ0hnC/6lgSmYXDp1i4IbkXLqImy6ytWTB11XAOsswGkaWo4h1Q+A+TdyLxg= X-Received: by 2002:a17:90b:1b09:b0:32e:e5:a90a with SMTP id 98e67ed59e1d1-339a6e64f9fmr8267694a91.8.1759393182058; Thu, 02 Oct 2025 01:19:42 -0700 (PDT) MIME-Version: 1.0 References: <20250930085428.717195-1-alviro.iskandar@gnuweeb.org> <20251002070502.GA18177-ammarfaizi2@gnuweeb.org> <20251002080747.GB18177-ammarfaizi2@gnuweeb.org> In-Reply-To: <20251002080747.GB18177-ammarfaizi2@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Thu, 2 Oct 2025 15:19:30 +0700 X-Gmail-Original-Message-ID: X-Gm-Features: AS18NWDQ9suaAqBCEtWViWunu945FQwDCfOo41nwo1MBKMjq1qduqB9tsixT9aw Message-ID: Subject: Re: [PATCH gwproxy v13 0/8] Initial work on integration of DNS parser lib in gwproxy To: Ammar Faizi Cc: Ahmad Gani , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: On Thu, Oct 2, 2025 at 3:07=E2=80=AFPM Ammar Faizi wrote: > Anyway, I don't see the DNS cache integration here. Please integrate it > in the next revision. I think when we use the raw DNS resolver, we no > longer need this option to control the DNS cache: > > -L, --socks5-dns-cache-secs=3Dsec SOCKS5 DNS cache duration in seconds = (default: 0) > > Instead, the cache duration can be taken from the TTL retrivied from > the DNS server. That's one of the advantages of creating our own DNS > resolver. I introduced the -L option because getaddrinfo() doesn't > expose the TTL to the caller. > > For the initial experimental stage, you can write a rejection rule at > initalization. If the raw DNS feature is used and the -L option is > specified, reject it, show an error message that says -L option is > not supported with the raw DNS feature. Ok, I'll do that