DNS server in NM static ethernet config fails to configure in systemd-resolved

Bug #1720976 reported by Bernd Porr
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Invalid
Undecided
Unassigned
systemd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

1)
root@dimension:/home/bp1# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Artful Aardvark (development branch)
Release: 17.10
Codename: artful
root@dimension:/home/bp1#
2)
systemd:
  Installed: 234-2ubuntu10
  Candidate: 234-2ubuntu10
  Version table:
 *** 234-2ubuntu10 500
        500 http://gb.archive.ubuntu.com/ubuntu artful/main amd64 Packages
        100 /var/lib/dpkg/status
3) DNS resolution
4) No DNS resolution from my configured DNS (in my case 192.168.1.1)
Workarounds:
Enable FallbackDNS=8.8.8.8 8.8.4.4 in resolved.conf
Or running dhclient

Fresh boot of Artful (static IP via network manager and DNS should be at 192.168.1.1):

bp1@dimension:~$ ifconfig
enp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
        inet6 fe80::99f:fae5:1467:a576 prefixlen 64 scopeid 0x20<link>
        ether 00:1e:4f:e9:f1:c1 txqueuelen 1000 (Ethernet)
        RX packets 141 bytes 14707 (14.7 KB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 234 bytes 29807 (29.8 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
        device interrupt 16

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
        inet 127.0.0.1 netmask 255.0.0.0
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 1000 (Local Loopback)
        RX packets 556 bytes 33758 (33.7 KB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 556 bytes 33758 (33.7 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

bp1@dimension:~$ ping www.dn.se
ping: www.dn.se: Name or service not known
bp1@dimension:~$ su
Password:
root@dimension:/home/bp1# systemd-resolve --status
Global
          DNSSEC NTA: 10.in-addr.arpa
                      16.172.in-addr.arpa
                      168.192.in-addr.arpa
                      17.172.in-addr.arpa
                      18.172.in-addr.arpa
                      19.172.in-addr.arpa
                      20.172.in-addr.arpa
                      21.172.in-addr.arpa
                      22.172.in-addr.arpa
                      23.172.in-addr.arpa
                      24.172.in-addr.arpa
                      25.172.in-addr.arpa
                      26.172.in-addr.arpa
                      27.172.in-addr.arpa
                      28.172.in-addr.arpa
                      29.172.in-addr.arpa
                      30.172.in-addr.arpa
                      31.172.in-addr.arpa
                      corp
                      d.f.ip6.arpa
                      home
                      internal
                      intranet
                      lan
                      local
                      private
                      test

Link 2 (enp8s0)
      Current Scopes: LLMNR/IPv4 LLMNR/IPv6
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
root@dimension:/home/bp1# ping www.dn.se
ping: www.dn.se: Name or service not known
root@dimension:/home/bp1# nano /etc/systemd/resolved.conf
root@dimension:/home/bp1# cat /etc/systemd/resolved.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
#DNS=
FallbackDNS=8.8.8.8 8.8.4.4
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=no
#Cache=yes
#DNSStubListener=udp
root@dimension:/home/bp1# ps ax | grep systemd
  254 ? Ss 0:00 /lib/systemd/systemd-journald
  292 ? Ss 0:00 /lib/systemd/systemd-udevd
  573 ? Ssl 0:00 /lib/systemd/systemd-timesyncd
  585 ? Ss 0:00 /lib/systemd/systemd-networkd
  701 ? Ss 0:00 /lib/systemd/systemd-logind
  735 ? Ss 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  844 ? Ss 0:00 /lib/systemd/systemd-resolved
 1138 ? Ss 0:00 /lib/systemd/systemd --user
 1219 ? Ss 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation
 1531 ? Ss 0:00 /lib/systemd/systemd --user
 1678 pts/0 S+ 0:00 grep --color=auto systemd
root@dimension:/home/bp1# kill -HUP 844
root@dimension:/home/bp1# ping www.dn.se
PING e12723.a.akamaiedge.net (23.217.10.201) 56(84) bytes of data.
64 bytes from a23-217-10-201.deploy.static.akamaitechnologies.com (23.217.10.201): icmp_seq=1 ttl=58 time=27.4 ms
^C
--- e12723.a.akamaiedge.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 27.478/27.478/27.478/0.000 ms

root@dimension:/home/bp1# systemd-resolve --status
Global
         DNS Servers: 8.8.8.8
                      8.8.4.4
          DNSSEC NTA: 10.in-addr.arpa
                      16.172.in-addr.arpa
                      168.192.in-addr.arpa
                      17.172.in-addr.arpa
                      18.172.in-addr.arpa
                      19.172.in-addr.arpa
                      20.172.in-addr.arpa
                      21.172.in-addr.arpa
                      22.172.in-addr.arpa
                      23.172.in-addr.arpa
                      24.172.in-addr.arpa
                      25.172.in-addr.arpa
                      26.172.in-addr.arpa
                      27.172.in-addr.arpa
                      28.172.in-addr.arpa
                      29.172.in-addr.arpa
                      30.172.in-addr.arpa
                      31.172.in-addr.arpa
                      corp
                      d.f.ip6.arpa
                      home
                      internal
                      intranet
                      lan
                      local
                      private
                      test

Link 2 (enp8s0)
      Current Scopes: LLMNR/IPv4 LLMNR/IPv6
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Fresh boot of Artful (static IP via network manager and DNS should be at 192.168.1.1) -> NetworkManager has integration with systemd-resolved and thus should pass DNS information to resolved.

Could you please show your NetworkManager configuration for the network in question?

Revision history for this message
Bernd Porr (berndporr) wrote :

bp1@dimension:~$ nmcli
enp8s0: connected to Ethernet connection 1
 "Broadcom Limited NetXtreme BCM5754 Gigabit Ethernet PCI Express (Precision T5400)"
 ethernet (tg3), 00:1E:4F:E9:F1:C1, hw, mtu 1500
 ip4 default
 inet4 192.168.1.5/24
 route4 169.254.0.0/16
 inet6 fe80::99f:fae5:1467:a576/64

lo: unmanaged
 "lo"
 loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
 servers: 192.168.1.1
 interface: enp8s0

Revision history for this message
Bernd Porr (berndporr) wrote :

Should also add that there is the same problem when I enable dhcp and let the network manager do dhcp.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Changed in systemd (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon)
summary: - no DNS resolution via systemd
+ DNS server in NM static ethernet config fails to configure in systemd-
+ resolved
Revision history for this message
Steve Langasek (vorlon) wrote :

I have tested on artful here with a NetworkManager wired connection with static DNS and cannot reproduce the problem.

Dan Streetman (ddstreet)
Changed in systemd (Ubuntu):
status: Confirmed → Invalid
Changed in network-manager (Ubuntu):
status: Confirmed → Invalid
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.