From owner-freebsd-questions@FreeBSD.ORG Fri Sep 27 23:12:07 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 99043DEF for ; Fri, 27 Sep 2013 23:12:07 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 21712214E for ; Fri, 27 Sep 2013 23:12:06 +0000 (UTC) Received: from [192.168.1.35] (mux.fjl.org.uk [62.3.120.246]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id r8RNBuX7095351 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO); Sat, 28 Sep 2013 00:11:57 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <524610BE.4020904@fjl.co.uk> Date: Sat, 28 Sep 2013 00:11:58 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Terje Elde Subject: Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53 References: <5245CC59.5060204@laposte.net> <524600CF.3040609@fjl.co.uk> <13463C66-C15D-48E0-B926-CA0BF6580CAD@elde.net> In-Reply-To: <13463C66-C15D-48E0-B926-CA0BF6580CAD@elde.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 23:12:07 -0000 On 27/09/2013 23:08, Terje Elde wrote: > On 28. sep. 2013, at 00:03, Frank Leonhardt wrote: > >> If I understand the way it works correctly, the resolver pulls a list of the NS and hard-sets the port number for each to 53 (via a manifest constant) . See libc/resolv/res_init.c. All you need to do(!) is change this to a value of your choice and recompile libc > Sorry, but this is startin to look a lot like a complicated solution to a problem that isn't really there... > It was more of an explanation as to /why/ it's not easy to do what asked in the original reasonable-sounding question.