fedora 39 change dns
Less than 1 minute
fedora 39 change dns
concepts
- in fedora 39,
/etc/resolve.conf
is managed by systemd-resolved
how
- edit
/etc/systemd/resolved.conf
sudo vi /etc/systemd/resolved.conf
- add/modify
DNS=223.5.5.5
- restart systemd-resolved
sudo systemctl restart systemd-resolved
- check
systemd-resolve --status
#nslookup www.google.com.hk nslookup www.baidu.com