Network manager doesn't honor configuration for dns

Bug #1736701 reported by Samuele Giovanni Tonon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
New
Low
Unassigned

Bug Description

Hello,
i've recently created a new ubuntu vm machine starting from xubuntu 17.10.

after disabling systemd-resolve i configured my wired connection to use my dns server on 127.0.0.1 and 9.9.9.9 as backup however network-manager is rewriting /etc/resolv.conf with the right search path but with the wrong nameserver (127.0.1.1) .

this is my /etc/NetworkManager/NetworkManager.conf
#####
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no
#####

This is the config of the interface

# nmcli device show eth0
GENERAL.DEVICE: eth0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 08:00:27:88:A7:A4
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/3
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 10.0.2.15/24
IP4.GATEWAY: 10.0.2.2
IP4.DNS[1]: 127.0.0.1
IP4.DNS[2]: 9.9.9.9
IP6.ADDRESS[1]: fe80::144b:10aa:bc15:b43a/64
IP6.GATEWAY: --

This is my resolv.conf

cat /etc/resolv.conf
# Generated by NetworkManager
search nl.europe.intranet europe.intranet
nameserver 127.0.1.1

As workaround i have fixed /etc/resolv.conf and chattr +i it but i think network manager should honor my conf .
that wired connection is set up as dhcp address only.

Btw that dnsmasq running on 127.0.0.1 is my configured dnsmasq not the one network managers used to use a long time ago:

 ps auxwww| grep dnsm
dnsmasq 1764 0.0 0.0 57420 2828 ? S 11:20 0:00 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5 --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
root 4022 0.0 0.0 14356 972 pts/1 S+ 11:32 0:00 grep --color=auto dnsm

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in network-manager (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.