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.

enter image description here

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.

Share:
9,637

Related videos on Youtube

yoyo_fun
Author by

yoyo_fun

Computer Science student. Former inter at National Instruments.

Updated on September 18, 2022

Comments

  • yoyo_fun
    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
    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
    Julian Berger over 7 years
    I'm not a clickybuntu user :P so I prefer the solution in the provided link!
  • Boris Hamanov
    Boris Hamanov over 7 years
    @yoyo_fun you should edit your question to include this very important information.
  • Boris Hamanov
    Boris Hamanov over 7 years
    Now that the OP has revealed that they're on a server with no GUI, your answer sounds good!