netplan with a plan (dhcp and alt dns servers):

home | blog | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts


- Careful Chrome users, this search box might be "Not secure"



Need to add dns servers to netplan?
Start with the default dhcp setup, and neuter it:
- create /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
- add just this to it: network: {config: disabled}
- take the default netplan.yaml in /etc/netplan, and add:
network:
    ethernets:
        ens3:
            addresses: []
            dhcp4: true
    version: 2

And change to add (indents matter!):
network:
    ethernets:
        ens3:
            addresses: []
            dhcp4: true
            nameservers:
              addresses: [1.2.3.4, 5.6.7.8]
    version: 2

Give it a go with:
netplan try



[æ]