How to permanently modify DNS in debian

888u

Last update at :2024-06-21,Edit by888u

Here is a method to permanently modify DNS for Debian, which is different from temporary modification.

nano /etc/dhcp/dhclient.conf

Add at the end

supersede domain-name-servers 8.8.8.8, 8.8.4.4;

ctrl+x, then press y and then press enter to save and exit!

Restart the network card:

systemctl restart networking.service

Recommended site search: rent high-defense IP, registration-free virtual host, wordpress space, overseas server, cheapest cloud server, domain name resolution query, icp registration center, Singapore server, Ministry of Information Industry registration, vps virtual host

How to permanently modify DNS in debian

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码