From owner-freebsd-questions@FreeBSD.ORG Fri Sep 27 21:32:04 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 6FB3AFE6 for ; Fri, 27 Sep 2013 21:32:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2E1952C27 for ; Fri, 27 Sep 2013 21:32:03 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VPfdg-00065L-8z for freebsd-questions@freebsd.org; Fri, 27 Sep 2013 23:31:54 +0200 Received: from 79-139-19-75.prenet.pl ([79.139.19.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Sep 2013 23:31:52 +0200 Received: from jb.1234abcd by 79-139-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Sep 2013 23:31:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: jb Subject: Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53 Date: Fri, 27 Sep 2013 21:31:30 +0000 (UTC) Lines: 49 Message-ID: References: <5245CC59.5060204@laposte.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0) 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 21:32:04 -0000 Laurent SALIN laposte.net> writes: > > 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 Well, I hope I understand you. You use DNS Proxy server, like BIND or DNSMASQ. With BIND you have options in /etc/named.conf: http://www.zytrax.com/books/dns/ch7/queries.html forward forwarders I do not know how DNSMASQ configures it, if at all - you would have to download original package with full documentation. jb