Zoneserver mararc dns_port patch

Milan Kupcevic milan at physics.harvard.edu
Tue Feb 17 08:55:46 EST 2009



On Tue, 17 Feb 2009, Alexander Clouter wrote:

> Hi,
> 
> * milan at physics.harvard.edu <milan at physics.harvard.edu> [Tue, 17 Feb 2009 01:08:47 -0500 (EST)]:
> >
> > +        /* Set the dns_port */
> > +        dns_port = read_numeric_kvar("dns_port",53);
> > +        if(dns_port < 1 || dns_port > 65530) {
> > +            harderror("dns_port must be between 1 and 65530");
> > +            exit(1);
> > +        }
> 
> Only to satisfy my curiousity, why '> 65530' and not '> 65535', 
> otherwise known as 2^16 - 1?
> 
> Cheers
>

Zoneserver should act the same as MaraDNS acts. Take a look at 
/server/MaraDNS.c. Why MaraDNS limits listening ports to 1--65530 range is 
a mistery of itself.

Milan




More information about the list mailing list