From owner-freebsd-questions@FreeBSD.ORG Fri Sep 27 18:27:49 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 25C86383 for ; Fri, 27 Sep 2013 18:27:49 +0000 (UTC) (envelope-from salin.laurent@laposte.net) Received: from smtpout.laposte.net (smtpout4.laposte.net [193.253.67.229]) by mx1.freebsd.org (Postfix) with ESMTP id C26C022B7 for ; Fri, 27 Sep 2013 18:27:47 +0000 (UTC) Received: from [192.168.76.1] ([62.147.142.218]) by mwinf8507-out with ME id WJL91m00J4ivp8E03JLANb; Fri, 27 Sep 2013 20:20:10 +0200 Message-ID: <5245CC59.5060204@laposte.net> Date: Fri, 27 Sep 2013 20:20:09 +0200 From: Laurent SALIN User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130824 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: How to ask a DNS resolver listening on a different port than the tcp/udp 53 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 18:27:49 -0000 Hello, I wondering how i can send queries to a dns resolver listening on a different port than the normaly 53 tcp/udp ? The situation: I've got a vps who running NSD as a autoritative nameserver, listening on tcp/udp 53 and unbound as personnal resolver, listening on a different tcp/udp port. It work very well on his own or with my OpenBSD gateway at home as DNS cache. Recently i've got a new FreeBSD VPS and I want to use the first VPS as DNS nameserver for the second VPS but FreeBSD is unable to send queries to nameserver on a different port as the normal one (tcp/udp 53). I've got a "bad" solution, use unbound on the second VPS and maybe tell him to ask the 1rst VPS on the unusual tcp/udp port, but I wonder myself if is it possible with Packet Filter to change the destination port of the queries forwarded to my 1rst VPS from tcp/udp 53 to tcp/udp 5353 for exemple ? Or maybe anybody got a other solution ? I hope you'll understand me :-/ Laurent SALIN