dhcp4-overrides - use-dns: false - ignored

Bug #1884522 reported by Franco
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Netplan
New
Undecided
Unassigned
netplan.io (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm using

...

network:
  version: 2
  renderer: NetworkManager

...

      dhcp4: yes
      dhcp4-overrides:
        use-dns: false
      dhcp6: no
      nameservers:
        addresses: addresses: [1.1.1.1,8.8.8.8,1.0.0.1,8.8.4.4]
...

but after applying i get this dns

200.42.xxx.xxx 200.49.xxx.xxx 1.1.1.1 8.8.8.8

the first 2 are provided by the router DNS. Why?

Also notice that Ubuntu ignores the use-dns: false graphically and check the option as automatic. If I turn OFF that, the DNS work just as intended.
https://imgur.com/M710b2X

This is what the actual DNS are set
https://imgur.com/a4pjKqr

TEMPORARY WORKAROUND
use:

network:
  version: 2
  renderer: networkd

and work as intended

tags: added: dhcp
tags: added: use-dns
removed: dhcp
tags: added: dhcp
tags: added: 20.04 ubuntu
description: updated
description: updated
description: updated
Paul White (paulw2u)
affects: ubuntu → netplan.io (Ubuntu)
tags: added: focal
removed: 20.04 ubuntu
Revision history for this message
Franco (francogpellegrini) wrote :

TEMPORARY WORKAROUND
use:

network:
  version: 2
  renderer: networkd

and work as intended

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

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

Changed in netplan.io (Ubuntu):
status: New → Confirmed
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.