fedora change dns nameserver 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