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_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=1759392474; bh=wv4e2yEsOMmrNtpcd/iY5mdA79SzC73+sbzw2O1EHLQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To:X-Gw-Outgoing-Server-Hash:X-Gw-Message-ID: X-Gw-PM-Hash: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=TglQ4qeUe4HbAknvGmyrEPsZGmRRv5zSPfn7UYIV/7U/RHdLkPhUgXByLXak5y4tP Jj1Rdbhk4w3rq0M1YOUISEgin4Tr0X6F2JGrYjEbWfTX+QBFJnJzOROoORsvqm74Ax 337srcxTNENBxmF44zbPeuKudVKBk87ZmbaXm1d5sNVEmnHT9qvLA3KS9zaT2k0RUL +jlYlZRr0U22iQWOeBsrkgngbwXn/R1A5F/qU7WrbquB7QdvH1uWLPpTclR9TeoLkR 3xokHxwyqvoOP8X2DQFLJHQNpjIwc2IkfnuUF5GPimg9KdUi3qhgh7+O/N3Jwc43Re BGKN5MZwzBoFw== Received: from linux.gnuweeb.org (unknown [182.253.126.153]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 39A66312798F; Thu, 2 Oct 2025 08:07:50 +0000 (UTC) Date: Thu, 2 Oct 2025 15:07:47 +0700 From: Ammar Faizi To: Alviro Iskandar Setiawan Cc: Ahmad Gani , GNU/Weeb Mailing List Subject: Re: [PATCH gwproxy v13 0/8] Initial work on integration of DNS parser lib in gwproxy Message-ID: <20251002080747.GB18177-ammarfaizi2@gnuweeb.org> References: <20250930085428.717195-1-alviro.iskandar@gnuweeb.org> <20251002070502.GA18177-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Gw-Outgoing-Server-Hash: 01afd303c8b96d0c1d5e80aa96a4ee40ec69888f786fa24107c0862c0644af79 X-Gw-Message-ID: b4c797b957cbc187eaccd2c16efb8f138cf3c2441c048c2648ed58e458442a3f X-Gw-PM-Hash: 1c8e474b8a13c0fa92f5e1305c29ba82744320d278981455f02252f32360d8be List-Id: On Thu, Oct 02, 2025 at 02:20:44PM +0700, Alviro Iskandar Setiawan wrote: > Can you test this patch and confirm if it fixes the problem? > > https://gist.githubusercontent.com/alviroiskandar/f8d5b3ce7f30753613646508dd7ef356/raw/be63c7b68e9f576e7904fa21ee13857b1b3031b1/ipv6_fix.diff OK, nice. I confirm the patch fixes the problem. 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=sec 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. -- Ammar Faizi