fedora change dns server code example
Example: fedora change dns nameserver
# The simplest solution is to force use of your preferred DNS servers in /etc/systemd/resolved.conf and then restart the service.
sudo systemctl restart systemd-resolved.service