Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 7261  / 2 Years ago, mon, february 21, 2022, 10:55:50

I tweaked my system by installing ftp server and a dns server. I think in the process I messed up resolv.conf and the hosts file.



Now I want to restore it but am not able to do so.
I am using ubuntu 14.04 x86_64.



Here is a screenshot that might help:



enter image description here


More From » networking

 Answers
3

If you are running a currently-supported desktop version of Ubuntu, then networking should be handled by the NetworkManager service, and your /etc/network/interfaces file should contain only the default loopback interface definition



auto lo
iface lo inet loopback


To fix your /etc/resolv.conf file, you probably need to reconfigure the package from the command line using



sudo dpkg-reconfigure resolvconf


It will present you with a question about preparing /etc/resolv.conf for dynamic updates - answer "Yes". It may also present you with another question about temporarily appending your existing config to the dynamic one - if so you should probably answer "No" to that one. This will re-create the default symbolic link in place of your manually-edited file.


[#24679] Tuesday, February 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nstitutencert

Total Points: 171
Total Questions: 126
Total Answers: 124

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
nstitutencert questions
Fri, Dec 10, 21, 16:31, 2 Years ago
Tue, Apr 19, 22, 05:51, 2 Years ago
Wed, Jan 26, 22, 07:52, 2 Years ago
Sun, Aug 29, 21, 21:43, 3 Years ago
;