North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: [Re: [Re: M$SQL cleanup incentives]]

  • From: Doug Barton
  • Date: Fri Feb 21 23:26:51 2003

On Sat, 22 Feb 2003, E.B. Dreger wrote:

> BB> Recent versions of un*x BIND will pick a random port above
> BB> 1024 for udp conversations. It can and has picked 1434.
>
> Standard socket(2) behavior.  BIND [hopefully] runs chown(2)ed,
> so the source port number must be >= 1024.

At startup, named bind(2)'s a UDP port to send queries from, and get the
answers back on. In the absence of a query-source option that specifies
otherwise, this will be a random ephemeral port, however that's defined on
the system. TCP queries follow "standard" behavior, binding a random
ephemeral port for each query.

Pardon the pedantry, but since this is an often misundertood topic, I
thought it might help to lay out the facts.

HTH,

Doug

-- 

    "The last time France wanted more evidence, it rolled right
        through Paris with a German flag." - David Letterman