DNS server in NM static ethernet config fails to configure in systemd-resolved
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
1)
root@dimension:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Artful Aardvark (development branch)
Release: 17.10
Codename: artful
root@dimension:
2)
systemd:
Installed: 234-2ubuntu10
Candidate: 234-2ubuntu10
Version table:
*** 234-2ubuntu10 500
500 http://
100 /var/lib/
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<
inet 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::99f:
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<
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:
Global
DNSSEC NTA: 10.in-addr.arpa
Link 2 (enp8s0)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
root@dimension:
ping: www.dn.se: Name or service not known
root@dimension:
root@dimension:
# 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
#DNSStubListene
root@dimension:
254 ? Ss 0:00 /lib/systemd/
292 ? Ss 0:00 /lib/systemd/
573 ? Ssl 0:00 /lib/systemd/
585 ? Ss 0:00 /lib/systemd/
701 ? Ss 0:00 /lib/systemd/
735 ? Ss 0:00 /usr/bin/
844 ? Ss 0:00 /lib/systemd/
1138 ? Ss 0:00 /lib/systemd/
1219 ? Ss 0:00 /usr/bin/
1531 ? Ss 0:00 /lib/systemd/
1678 pts/0 S+ 0:00 grep --color=auto systemd
root@dimension:
root@dimension:
PING e12723.
64 bytes from a23-217-
^C
--- e12723.
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 27.478/
root@dimension:
Global
DNS Servers: 8.8.8.8
DNSSEC NTA: 10.in-addr.arpa
Link 2 (enp8s0)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
summary: |
- no DNS resolution via systemd + DNS server in NM static ethernet config fails to configure in systemd- + resolved |
Changed in systemd (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in network-manager (Ubuntu): | |
status: | Confirmed → Invalid |
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?