From owner-freebsd-questions@FreeBSD.ORG Sun Sep 29 18:45:56 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 7471FBA4 for ; Sun, 29 Sep 2013 18:45:56 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EAD3F22E3 for ; Sun, 29 Sep 2013 18:45:54 +0000 (UTC) Received: from kw.news4all.se (localhost [127.0.0.1]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id r8TIjg0P006743; Sun, 29 Sep 2013 20:45:43 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <52487556.5000601@bananmonarki.se> Date: Sun, 29 Sep 2013 20:45:42 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130419 Thunderbird/17.0.5 MIME-Version: 1.0 To: loran42o 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> <52468723.5080701@laposte.net> In-Reply-To: <52468723.5080701@laposte.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: Sun, 29 Sep 2013 18:45:56 -0000 On 2013-09-28 09:37, loran42o wrote: > Le 28.09.2013 00:08, Terje Elde a écrit : >> 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... >> >> Why not just point from resolv.conf to localhost, run a caching and/or recursive dns-server there, and point it whereever? >> >> As far as I can tell, that'd solve everything, add caching, and let it all be controlled from the config of the DNS-server? >> >> Terje > > Hi, > I guess this is the way that'll end. > > Laurent SALIN > You'll need to setup your bind.conf; zone "fqdn" IN { type forward; forward first; forwarders { 127.0.0.1 port 530; }; };