On Thu, Jun 30, 2016 at 01:01:58PM +0000, Stuart Henderson wrote: > On 2016-06-30, Kapetanakis Giannis <bil...@edu.physics.uoc.gr> wrote: > > Hi, > > > > a) I'm asking if there is any program in base for dns lookups that support > > port for name server. > > Not in base, you will need packages.
I guess you could play some games with pf(4) for a single occasion: # ifconfig lo0 127.0.0.2 alias # in pf.conf: set skip on none pass on lo pass on lo0 from any to 127.0.0.2 port 53 rdr-to 127.0.0.2 port 5678 (and maybe sth more I might be missing) /Alexander > > > b) would a patch for this in src/usr.sbin/bind/ be accepted or is > > there a reason for this to be out (except for the ancient version)? > > It was disabled so that tighter pledge(2) restrictions could be used.