Public bug reported:
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 ?S11: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/1S+ 11:32 0:00 grep
--color=auto dnsm
** Affects: network-manager (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1736701
Title:
Network manager doesn't honor configuration for dns
Status in network-manager package in Ubuntu:
New
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 ?S11: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/1S+ 11:32 0:00 grep
--color=auto dnsm
To manage n