0

First of all, this is not a duplicate of How do I include lines in resolv.conf that won't get lost on reboot?, as

A) It has not been working since 14.04. See the comment:

In 14.04 this answer did nothing for me. – Jay Sullivan Jun 30 '14

B) The answer there is to use /etc/resolvconf/resolv.conf.d/base file, but this question asks exactly why /etc/resolvconf/resolv.conf.d/base file is not working.

Following up on Use dnsmasq as system DNS service, I installed resolvconf as per the latest reply/answer, however, I found that, the /etc/resolvconf/resolv.conf.d/base file, which should be use to preset nameserver values as per all documents that I read, is not doing what is advertised/documented. Here is what the man page says:

/etc/resolvconf/resolv.conf.d/base
File containing basic resolver information. The lines in this file are included in the resolver configuration file even when no interfaces are configured.

However I found that, whatever info I put into the /etc/resolvconf/resolv.conf.d/base file, they would never show up in /etc/resolv.conf.

So just to confirm, is there any way to properly configured nameserver of /etc/resolv.conf for resolvconf?

So far my conclusion is that

  • the 127.0.0.1 is hard-coded for resolvconf and there is no way to overwrite it.
  • the only way is to supersede it in /etc/resolvconf/resolv.conf.d/head, producing two nameservers in /etc/resolv.conf file. One valid and the other invalid (127.0.0.1).

And I truly hope that I'm wrong.

P.S. this is LUbuntu 18.04.2:

$ lsb_release -a 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic
xpt
  • 1,197

0 Answers0