not possible to override dns servers when using dhcp
Bug #1882300 reported by
Philipp Leusmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
I need to override the nameserver provided by DHCP with a config like this:
network:
version: 2
ethernets:
ens160:
dhcp4: true
nameservers:
addresses: [8.8.8.8]
To post a comment you must log in.
Hi Philipp,
What you need should be doable with the following configuration:
dhcp4: true
dhcp4-overrides:
use-dns: false
For reference see: https:/ /netplan. io/reference
I'm marking this report as Incomplete for the moment. Please change its status to Won't Fix if you think no further action is needed, otherwise change it back to New after commenting back and we'll look at it again. Thanks!