آموزش تغییر dns سرورها در ubuntu

ByteWire
ByteWire
1.2 هزار بار بازدید - پارسال - 1- با دستور زیر resolvconf
1- با دستور زیر resolvconf را کانفیگ را نصب می کنیم.
sudo apt install resolvconf
2- با دستور زیر resolvconf را استارت می کنیم.
sudo systemctl start resolvconf.service
sudo systemctl enable resolvconf.service
3- با دستور زیر فایل resolv.conf.d/head را ویرایش کرده و  dns های مورد نظر را وارد می کنیم.
sudo nano /etc/resolvconf/resolv.conf.d/head
در صفحه باز شده dns ها را وارد کنید.
nameserver 8.8.8.8
nameserver 8.8.4.4
4- با دستورهای زیر dns ها را در resolvconf آپدیت می کنیم
sudo resolvconf --enable-updates
sudo resolvconf -u
5- سرویس resolvconf را مجددا راه اندازی کنید.
sudo systemctl restart resolvconf.service
sudo systemctl restart systemd-resolved.service


6- با دستور زیر dns ها را چک کنید.
cat /etc/resolv.conf

1- We install resolvconf with the following command.

sudo apt install resolveconf

2- We start resolvconf with the following command.

sudo systemctl start resolveconf.service
sudo systemctl enable resolveconf.service

3- Edit the resolv.conf.d/head file with the following command and enter the desired dns.

sudo nano /etc/resolvconf/resolv.conf.d/head

Enter the dns in the opened page.

nameserver 8.8.8.8
name server 8.8.4.4

4- We update the dns in resolvconf with the following commands

sudo resolveconf --enable-updates
sudo resolveconf -u

5- Restart the resolvconf service.
sudo systemctl restart resolveconf.service
sudo systemctl restart systemd-resolved.service

6- Check the dns with the command below.

cat /etc/resolv.conf
پارسال در تاریخ 1402/02/28 منتشر شده است.
1,296 بـار بازدید شده
... بیشتر