console-conf does not allow to set up dns for static ip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
Undecided
|
Martin Pitt | ||
nplan (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned | ||
subiquity (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Yakkety |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[Impact]
subiquity and other nplan users may need to include DNS information when setting up a system.
[Test case]
1) set up a system with a netplan configuration including the nameserver: key for an interface, such as the following:
network:
ethernets:
enxb827ebd3
addresses: [192.168.0.200/24]
nameservers: 192.168.0.10
version: 2
Verify that the nameserver settings are properly installed to the system (see /etc/resolv.conf or /run/systemd/
[Regression potential]
Existing configurations that do not include nameserver configs should continue to work as-is; without nameserver data if using static addresses, or with the nameserver data retrieved from DHCP.
[Original bug report]
There's no way to setup DNS info for static IP configuration, which leads to broken name resolution:
fgimenez@
# This is the network config written by 'console-conf'
network:
ethernets:
enxb827ebd3
addresses: [192.168.0.200/24]
version: 2
fgimenez@
ping: unknown host www.ubuntu.com
fgimenez@
# 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
Selecting DHCP config from console-conf all works fine:
fgimenez@
# This is the network config written by 'console-conf'
network:
ethernets:
enxb827ebd3
addresses: []
dhcp4: true
version: 2
fgimenez@
PING www.ubuntu.com (91.189.90.59) 56(84) bytes of data.
64 bytes from www.ubuntu.com (91.189.90.59): icmp_seq=1 ttl=51 time=34.0 ms
64 bytes from www.ubuntu.com (91.189.90.59): icmp_seq=2 ttl=51 time=39.4 ms
64 bytes from www.ubuntu.com (91.189.90.59): icmp_seq=3 ttl=51 time=37.0 ms
^C
--- www.ubuntu.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 34.066/
fgimenez@
# 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
nameserver 192.168.0.1
Changed in subiquity (Ubuntu): | |
importance: | Undecided → Critical |
Changed in subiquity (Ubuntu): | |
status: | New → Fix Released |
tags: | added: plano-acan |
description: | updated |
Changed in subiquity (Ubuntu Xenial): | |
status: | New → Won't Fix |
Changed in subiquity (Ubuntu Yakkety): | |
status: | New → Won't Fix |
no longer affects: | snappy |
I don't think netplan supports this yet :(