From owner-freebsd-net@freebsd.org Mon Aug 21 11:08:27 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88627DD2B03 for ; Mon, 21 Aug 2017 11:08:27 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id EFFF16A85B for ; Mon, 21 Aug 2017 11:08:26 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39792246; Mon, 21 Aug 2017 17:03:47 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.15.2/8.15.2) with ESMTP id v7LB8OR4046013; Mon, 21 Aug 2017 18:08:24 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.15.2/8.15.2/Submit) id v7LB8NLl046012; Mon, 21 Aug 2017 18:08:23 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Mon, 21 Aug 2017 18:08:22 +0700 From: Victor Sudakov To: Eugene Grosbein Cc: freebsd-net@freebsd.org Subject: Re: resolv.conf and a non-standard port Message-ID: <20170821110822.GB45463@admin.sibptus.transneft.ru> References: <20170821102354.GA44676@admin.sibptus.transneft.ru> <599ABBAE.3080203@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <599ABBAE.3080203@grosbein.net> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 11:08:27 -0000 Eugene Grosbein wrote: > > > > How can I configure the resolver to use a DNS server with a > > non-standard port? > > > > I have a host running an authoritative-only server (nsd) for the > > world, and I want to run local unbound for the host itself (can't use > > nsd for recursive queries). > > > > Unbound can listen on a non-standard port, but how do I configure the > > host to use the DNS server at 127.0.0.1:5353 ? > > I run same configuration. You need not use non-standard port. > Just bind nsd to external address and unbound to 127.0.0.1 > and you'll be fine. Please see my response to Bert. BTW OpenBSD has this feature: 'nameserver [127.0.0.1]:5353' It can be useful in other scenarios as well. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN AS43859