Ask Your Question
0

Missing files and internet connection Fedora 25

asked 2017-06-25 17:15:22 -0600

SOHO gravatar image

updated 2017-06-26 15:34:20 -0600

Hi guys. After boot up no internet connection could be made via normal browsers, though worked perfectly with tor. I've noticed a weird bridge connection which wasn't there yesterday so I got it down. It didn't gave a proper result so I've tried dhclient -r which worked for me until the next restart. After restart I had the same issue though dhclient method didn't work again, mostly because of issues with resolv.conf. As found later, none of the resolvconf files are present in the system. Even its trigger in /init.d/ folder is missing. Any ideas?

UPD. So far I found out that "something" erase the entire /run/resolvconf/ folder alongside with its file which later results in a broken symlink. This seems to happen on restart/power off. That's why on every boot up I have to manually create a new /run/resolvconf/resolv.conf file and using dhclient get things done. How can I solve this? Thank you in advance!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-06-27 02:54:14 -0600

villykruse gravatar image

updated 2017-06-27 02:58:20 -0600

On fedora systems, the resolv.conf is created by NetworkManager in /var/run/NetworkManager/resolv.conf. Thus, the /etc/resolv.conf is normally a symbolic link to that file and not /run/resolvconf/resolv.conf.

As root runL

rm /etc/resolv.conf
ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.conf

Also, remember that the /run file system is a ram file system which will be empty after reboot, and the contents is created by the various systemd services. /var/run is a sumbolic link to /run so it is really the same thing.

/run/resolvconf/ might to be an Ubunto thing.

edit flag offensive delete link more
0

answered 2017-06-27 02:30:06 -0600

SOHO gravatar image

Problem solved. The trick was to create a resolv.conf file in a Home directory (I choosed "Documents"), and create a symlink for it in etc. It seems like this way, the app that caused this problem isn't able to remove, nor overwrite the file, judging by the logs. Case closed!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-06-25 17:15:22 -0600

Seen: 204 times

Last updated: Jun 27 '17