Inconsistent DNS configuration in manual settings

Bug #1993193 reported by Olivier Gayot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
New
Low
Unassigned

Bug Description

when editing the IPv4 configuration of a given nic multiple times, the `Name servers:` field gets reset (it's not pre-filled when the form gets opened again).

In the meantime, systemd-resolved seems to keep the old values in memory.

The `Gateway:" field also gets reset when opening the edit screen multiple times (which is not ideal) but the output of `ip -4 route` seems consistent.

Steps to reproduce:

1. On the network screen, choose one nic and do the following:

* Edit IPv4 (Manual) -> Name servers: 1.2.3.4 -> Save
* Edit IPv4 (Manual) -> Name servers: 2.3.4.5 -> Save
* Edit IPv4 (Manual) -> Name servers: 9.8.7.6 -> Save

each time the edit screen will be opened, the Name servers value will be empty.

2. Run the resolvectl command and check the output:

$ resolvectl
Global
       Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
      DNS Domain: lxd

Link 2 (ens3)
    Current Scopes: DNS
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 2.3.4.5
       DNS Servers: 1.2.3.4 2.3.4.5 9.8.7.6

Dan Bungert (dbungert)
Changed in subiquity (Ubuntu):
importance: Undecided → Low
Revision history for this message
Olivier Gayot (ogayot) wrote :

Similar bug report that mentions duplicate search domains too: https://bugs.launchpad.net/subiquity/+bug/1998920

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

A small part of what is going on here is that the UI presents a different configuration model to what netplan exposes. Netplan doesn't have the concept of "IPv4 configuration", it just has addresses (which can be v4 or v6) and nameservers. Maybe it would make sense to move the UI in that direction? So you'd just say "add address" and let the user type either a ipv4 or ipv6 address. But changing the UI like this is a slow process of course (on the third hand, if we want to use subiquity views as a basis for "netplan edit" we should probably have the views reflect netplans actual model...)

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.