1. 查看当前DNS
systemd-resolve --status
或
resolvectl status
2. 修改DNS
sudo vi /etc/systemd/resolved.conf
sudo systemctl restart systemd-resolved.service
附常见DNS:
腾讯 DNS: 119.29.29.29、182.254.116.116
阿里 DNS: 223.5.5.5、223.6.6.6
百度 DNS: 180.76.76.76
114 DNS: 114.114.114.114、114.114.115.115
CNNIC DNS: 1.2.4.8、210.2.4.8
北京联通DNS: 202.106.195.68