Please also truncate nameserver list after a loopback address in resolv.conf.d/head
Bug #1035098 reported by
MarianoAbsatz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resolvconf (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
I created a /etc/default/
TRUNCATE_
in it.
The contents of /etc/resolvconf
#######
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# local resolver (unbound)
nameserver ::1
nameserver 127.0.0.1
#######
However, after rebooting, I still get my ISP's DNS servers below mine.
Changed in resolvconf (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- TRUNCATE_NAMESERVER_LIST_AFTER_LOOPBACK_ADDRESS envvar ignored in - /etc/default/resolvconf + Also truncate nameserver list after a loopback address in + resolv.conf.d/head |
summary: |
- Also truncate nameserver list after a loopback address in + Please also truncate nameserver list after a loopback address in resolv.conf.d/head |
To post a comment you must log in.
Thanks for the report, but the behavior you describe is correct. The "head" and "tail" files are always included in the dynamic resolv.conf file without any change.
Of the files in /etc/resolvconf /resolv. conf.d/ , only the "base" file has contents subject to truncation. That is a better place to put your two "nameserver" lines. (An even better place is /etc/network/ interfaces .)