LANG=C nm-connection-editor
or right click the panel icon and choose edit connections
choose the connection
go to IPv4 settings tab
change the Method from
“automatic(DHCP)”
to
“automatic(DHCP) addresses only”
in the same tab, in the DNS servers field, put the IPv4 name servers you want:
1.1.1.1, 1.0.0.1
do the same thing in the next tab, the IPv6 settings tab
change Method
add server addresses:
2606:4700:4700::1111, 2606:4700:4700::1001