0

Here is my /etc/resolvconf/resolv.conf.d/base file contents:

# leave commented out above line lin resolvconf...as its listed in another file.
options timeout:1 attempts:1
nameserver 10.0.4.15
nameserver 10.0.2.18
nameserver 10.0.10.32
nameserver 10.0.3.25
search xyzdomain.com

But for some reason only 3 nameserver values are ever retained in

/etc/resolv.conf

I run

resolvconf -u

to regenerate the file...what am I missing?

1

1 Answer 1

2

This is a limit set at compile time for the libc resolver. The man resolv.conf page says:

"Up to MAXNS (currently 3, see <resolv.h>) name servers may be listed, one per keyword."

So without recompiling the resolver, you can't have more than three.

2
  • if I recompile the resolver I'm making my Ubuntu a custom kernel?
    – Zhenya
    Nov 29, 2018 at 0:16
  • No, because the resolver is part of libc, but not of the kernel.
    – roadmr
    Nov 29, 2018 at 21:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .