Город МОСКОВСКИЙ
00:01:14

Could not resolve host | DNS error in Ubuntu [Fixed]

Аватар
Unix Gurus
Просмотры:
51
Дата загрузки:
11.10.2024 10:12
Длительность:
00:01:14
Категория:
Лайфхаки

Описание

Solution:
Use Google Public DNS (8.8.8.8) instead of local DNS server.

Steps:
Note: to make changes permanent, stop dnsmasq service.

1: login in as root user
sudo -i
2: stop dnsmasq service

gedit /etc/NetworkManager/NetworkManager.conf

change "dns=dnsmasq" to "# dns=dnsmasq"

3: save the file

4: kill the service

sudo killall -9 dnsmasq

5: now add google public dns in etc/resolv.conf

gedit /etc/resolv.conf

add following two lines

nameserver 8.8.8.8
nameserver 8.8.4.4

save the file and exit

That's it

Рекомендуемые видео