Is /etc/resolv.conf a symbolic link, and are changes to it persistent?
9,637
Solution 1
No no no. You don't manually edit /etc/resolv.conf.
To enter your own DNS addresses, go to the Network icon in the top panel, and select Edit Connections
. Open the profile for the network where you'd like your own DNS servers defined.
Select the IPv4 tab. Set Automatic (DHCP) addresses only
, and a comma-separated list of DNS servers into the DNS servers
field.
Solution 2
With ls -l /etc/resolv.conf
you can see (due to the arrow and the linked file), that it is indeed a symbolic link. For your problem see this solution.
Related videos on Youtube
Author by
yoyo_fun
Computer Science student. Former inter at National Instruments.
Updated on September 18, 2022Comments
-
yoyo_fun over 1 year
Is
/etc/resolv.conf
a symbolic link? If so, how can one make persistent changes to the DNS? -
yoyo_fun over 7 years@thank you for the information but I cannot use any kind of graphic interface. I have to do everything from the command line since I can only connect through ssh to the virtual machine and it is built in a way in which there is no GUI on it.
-
Julian Berger over 7 yearsI'm not a clickybuntu user :P so I prefer the solution in the provided link!
-
Boris Hamanov over 7 years@yoyo_fun you should edit your question to include this very important information.
-
Boris Hamanov over 7 yearsNow that the OP has revealed that they're on a server with no GUI, your answer sounds good!