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=1755362460; bh=3w81nmkvECHanYmEOlPqqgjYAOltihJQ6Xj0e0+m5q0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To: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=auOUzKW57hY7J5liZ8K1krq3pbXYbUxp3+emfOQIbXRcqXJb6tW67VFNtdf8zrrwD hXcDPdSQYC0SZ7t2SXDIy+TvepRiGXLmb0wzqtuNswJwPExlvTexQjcHAII4PUqWdG 2BoE9UPMZ3uGOXdl60389C6ZmRkICqkEJayhVd686x3XMImnRrfa+Qycg0EzjfmIQT ZAE+kbHmiHxFKBk2bao2Buk7Db9ir3Ry2XEkiET5SR69vuBuqyDUQEGKUPuAdZHgSk 8qNGlaIyHQlxTakOp3TH99VK1Am8xHcol/ykp0W2oE5UjI6vjoObBdY05Crqr5Vci4 u/LTU8oAP3FIg== Received: from linux.gnuweeb.org (unknown [182.253.126.185]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id E850531280D7; Sat, 16 Aug 2025 16:40:59 +0000 (UTC) Date: Sat, 16 Aug 2025 23:40:56 +0700 From: Ammar Faizi To: Ahmad Gani Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: Re: [PATCH gwproxy v5 2/2] dnsparser: Add dns parser code Message-ID: <20250816164056.GB144043-ammarfaizi2@gnuweeb.org> References: <20250814044658.252579-1-reyuki@gnuweeb.org> <20250814044658.252579-3-reyuki@gnuweeb.org> <20250816160303.GA144043-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Gw-Outgoing-Server-Hash: 01afd303c8b96d0c1d5e80aa96a4ee40ec69888f786fa24107c0862c0644af79 X-Gw-Message-ID: 2b141a8a38c67e46e0d8982b23104bd9a9ed16f518dbcd7789bf0f2fa7c03437 X-Gw-PM-Hash: 1f37f4917d33f8272d1a76ab87e785ef58c76cb7462f48d7e9b16219cbc25384 List-Id: On Sat, Aug 16, 2025 at 11:30:09PM +0700, Ahmad Gani wrote: > On Sat, Aug 16, 2025 at 11:03 PM Ammar Faizi wrote: > > Now the question is: How do we integrate this? > > > > I see no Makefile changes. I guess it's still not covered by gwproxy > > build system. > > I’ve managed to integrate it into gwproxy’s epoll event loop > and successfully run a simple single-query test with cURL. > > However, the integration process isn't fully completed and still requires > significant changes across `dns.c`, `gwproxy.c`, and `epoll.c`. > > So, It’s still a WIP. > > Here’s the gist of how I integrated the parser: > - A non-blocking UDP socket file descriptor is created each time > `gwp_dns_queue` is called. > - A standard DNS query packet is sent over the network through that socket. > - The UDP socket file descriptor is registered with epoll. > - On epoll notification, the response is received. > - The response is parsed and returned as a reply to the SOCKS5 > `CONNECT` command. Nice, sounds good. Looking forward to the updates! For now, I take the manpage change only from this series. -- Ammar Faizi