How can I change my default DNS server?

probably:
edit connections → IPv4 (and/orIPv6) and change the method to "Automatic (DHCP), Adresses only
as well as setting one or two custom DNS servers
the critical thing is to change the method from automatic to automatic, addresses only