DNS setting is not reflected in netplan yaml file when domain name isempty string

Bug #1757078 reported by Yeongsoo Yoon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netcfg (Ubuntu)
Fix Released
Critical
Dimitri John Ledkov

Bug Description

Package: netcfg
Version: 1.142
Severity: normal

Dear Maintainer,

When we install ubuntu server and set DNS addresses (ex. 8.8.8.8), the event that the DNS setting is not reflected in netplan yaml file (/etc/netplan/*.yaml) may occur.

We finded that the reason is related to the source code of the network package 'netcfg'.

In the function 'nc_wi_netplan_write_nameservers' of write_interface.c of netcfg-1.142ubuntu5(netcfg package source code directory), the nameservers are not written in the netplan yaml file if domain name is empty string.

We hope that the nameservers are written even if domain name is empty string.

Related branches

Changed in netcfg (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
Changed in netcfg (Ubuntu):
assignee: nobody → Dimitri John Ledkov (xnox)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netcfg - 1.142ubuntu7

---------------
netcfg (1.142ubuntu7) bionic; urgency=medium

  * Write out nameservers without a domain, for example when preseeding a
    static network configuration without any domains. LP: #1757078

 -- Dimitri John Ledkov <email address hidden> Wed, 25 Apr 2018 13:25:45 +0100

Changed in netcfg (Ubuntu):
status: Confirmed → Fix Released
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.