How to overright DHCP-provided nameserver

I’v changed the /hive-config/network/20-ethernet.network, add “DNS=8.8.8.8”, but can’t work correct.