Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: Maximum number of nameservers in resolv.conf
To:
Renaud Allard <renaud@allard.it>
Cc:
tech@openbsd.org
Date:
Tue, 28 Jan 2025 15:29:18 +0100

Download raw body.

Thread
On Tue, Jan 28, 2025 at 03:26:48PM +0100, Renaud Allard wrote:
> Hello,
> 
> The man page of resolv.conf states:
> "Up to ASR_MAXNS (currently 5) name servers may be listed"
> 
> I cannot find any value for ASR_MAXNS in /usr/include

lib/libc/asr/asr_private.h:#define ASR_MAXNS	5

> 
> But /usr/include/resolv.h contains:
> "#define   MAXNS                   3       /* max # name servers we'll track
> */"
> 
> Is there something wrong in the man page or am I missing something?
> 
> If it's a man page mistake, I attached a small diff.
> 
> 
> Thanks,
> Best Regards
> 
> 

> Index: resolv.conf.5
> ===================================================================
> RCS file: /cvs/src/share/man/man5/resolv.conf.5,v
> diff -r1.65 resolv.conf.5
> 89,90c89,90
> < .Dv ASR_MAXNS
> < (currently 5) name servers may be listed, one per line.
> ---
> > .Dv MAXNS
> > (currently 3) name servers may be listed, one per line.