debian禁止覆盖dns【阿里云】

debian禁止覆盖dns【阿里云】

vim /etc/network/interfaces

vim /etc/dhcp/dhclient.conf

systemctl restart networking

查看dns是否正确 cat /etc/reslov.conf