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?

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.

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.