查看DNS设置添加、修改DNS域名解析刷新dns缓存 查看DNS设置cat /etc/resolv.conf 添加、修改DNS域名解析# 先解锁,再加锁chattr -i /etc/resolv.confcat >> /etc/resolv.conf << EOFnameserver 8.8.8.8EOFchattr +i /etc/resolv.conf service network restart 刷新dns缓存DNS缓存刷新