Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2013 16:20:01 -0700
From:      Michael Sierchio <kudzu@tenebras.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53
Message-ID:  <CAHu1Y70bkt7g%2B95uUA_zUBt6NGbBKQvtcWpEeLM7rB0eFg6y_w@mail.gmail.com>
In-Reply-To: <524610BE.4020904@fjl.co.uk>
References:  <5245CC59.5060204@laposte.net> <524600CF.3040609@fjl.co.uk> <13463C66-C15D-48E0-B926-CA0BF6580CAD@elde.net> <524610BE.4020904@fjl.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 27, 2013 at 4:11 PM, Frank Leonhardt <frank2@fjl.co.uk> wrote:
> On 27/09/2013 23:08, Terje Elde wrote:
>>
>> On 28. sep. 2013, at 00:03, Frank Leonhardt <frank2@fjl.co.uk> 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...
>>
> It was more of an explanation as to /why/ it's not easy to do what asked in
> the original reasonable-sounding question.

Beg to differ.  The question isn't reasonable.  There's no point in
having a dns recursive resolver listening on a port other than the one
that clients will contact it on.

Far better to have the authoritative server listen on 127.53.0.1 and
use the routable address for the cache, which can forward requests for
the authoritative server when appropriate.

- M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y70bkt7g%2B95uUA_zUBt6NGbBKQvtcWpEeLM7rB0eFg6y_w>