ubuntu 2004 netplan error:Error in network definition: unknown key 'nameservers'

ubuntu 2004 netplan error:Error in network definition: unknown key 'nameservers'

ubuntu 2004 年 我用 netplan 分配网络,然后出现错误:

/etc/netplan/00-installer-config.yaml:8:3: Error in network definition: unknown key 'nameservers'
  nameservers:

下面的 00-installer-config.yaml 文件:

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens32:
            addresses: [10.9.86.40/24]
            gateway4: 10.9.86.254
  version: 2
  nameservers:
        addresses: [192.168.2.1, 8.8.8.8]

不要使用 Tab 键,只使用 space