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 forresolvconf
and there is no way to overwrite it. - the only way is to supersede it in
/etc/resolvconf/resolv.conf.d/head
, producing twonameserver
s 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
nameserver
in resolv.conf ? – JoKeR Jul 17 '19 at 22:01127.0.0.1
to a valid one. – xpt Jul 18 '19 at 02:03sudo nano /etc/resolv.conf
and enter it manually and save it. – JoKeR Jul 18 '19 at 09:32resolv.conf
and input lets saynameserver 8.8.8.8
andnameserver 8.8.4.4
it will work but once you reload Network Manger it will apply your Network dns which your system uses. In my case my dns gets overwritten by my VPN that I use because that is a dns it relies on. – JoKeR Jul 18 '19 at 15:13/etc/resolvconf/resolv.conf.d/base
file, but this question asks exactly why/etc/resolvconf/resolv.conf.d/base
file is not working. – xpt Jul 22 '19 at 13:55