I'm new user on Ubuntu and I need your help.
I would like to configure DNS in /etc/resolv.conf
, so I used this command:
sudo nano /etc/resolv.conf
I changed my DNS server and it was OK but, after restarting, my changes to /etc/resolv.conf
were removed and the default configuration was restored.
I have tried the command below but it failed:
sudo chattr +i /etc/resolv.conf
chattr: Opération non supportée lors de la lecture des drapeaux sur /etc/resolv.conf
in english:
chattr : Operation not supported when reading flags on /etc/resolv.conf
What can I do?
Best Answer
Hello Saturne64 and welcome to Askubuntu! The contents of
/etc/resolv.conf
are ultimately overwritten, but we can still set your DNS server of choice for your computer through the Network Manager. Please follow these steps:sudo systemctl restart network-manager.service
.Let me know if you need further assistance :)