resolv.conf and a non-standard port

Victor Sudakov vas at mpeks.tomsk.su
Mon Aug 21 11:04:09 UTC 2017


Bert Kiers 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 think it will be more simple to have nsd and unbound listen on
> different IP-adresses, like unbound on 127.0.0.1 and nsd on the external
> IP-address.  Then put 127.0.0.1 in resolv.conf

That's how I have configured it now, but this solution has a major
drawback: you need to specify the IP address explicitely in
/var/unbound/unbound.conf which can be inconvenient in some
situations.

So it's a workaround, but by no means "more simple."

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
AS43859


More information about the freebsd-net mailing list