CentOS 7设置DNS服务器

nmcli connection show

nmcli con mod ens160 ipv4.dns "114.114.114.114 8.8.8.8"

nmcli con up ens160