Index | Thread | Search

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

Download raw body.

Thread

On 1/28/25 3:29 PM, Theo Buehler wrote:
> 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
> 

Thanks for the fast reply. But then, what's the purpose of the MAXNS 
limit in resolv.h? Shouldn't it be set on 5 too?

>>
>> But /usr/include/resolv.h contains:
>> "#define   MAXNS                   3       /* max # name servers we'll track
>> */"
>>