Since a wifi outage a day or so ago I have had no access to the internet on my ubuntu running computer. I can ping 18.104.22.168, so I believe the problem is DNS related. However, manually setting the DNS in the network manager does nothing. I have also tried systemctl enable resolved, but am told that I don't have a resolved.service file at all.
Any ideas that people have on how to fix this issue would be greatly appreciated, as I am increasingly out of ideas. I can provide more information on request.
Edit: The input cat /etc/resolv.conf returns No such file or directory Edit 2: After following the advice of a previous answer, cat /etc/resolv.conf now gives:
This file is managed by man:systemd-resolved(8) Do not edit.
And other such information about the file. However, I still cannot access the internet. Edit 3: Putting in cat /etc/resolv.conf gives the nameserver 127.0.0.53 and options ends0 trust-ad lines, but not the search example.com one.
Additonally, entering in /etc/reslov.conf gives bash: /etc/resolv.conf: Permission denied if that is of any use to anybody.
Edit 4: Somehow, someway, for reasons known but to God, cat /etc/resolv.conf is again telling me there is no such file. I did restart the computer a moment ago to see if that would set things right. Clearly, it did not. Putting in sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf returns Unable to resolve host (my name)'s computer: Temporary failure in name resolution followed by (after a password entry) ln: failed to create smbolic link etc/resolv.conf: No such file or directory
Edit 5: Upon creating that text file nameserver 22.214.171.124 and trying to save it as * etc/resolv.conf* I am told that there is an error for every place I would try to save it in, as there is "No such file or directory."
This is entirely new and doesn't happen when I save a quickly drawn-up word document.
Edit 6: An error upon trying to save the new file they are as follows:
(gedit: 3844): Tepl-WARNING ** (timestamp): GVfs metadata is not supported fallback to TeplMetadataManager. Either GVfs is not correctly installed or GVfs metadta are not supported on this platform. In the later case, you should configure Tepl with --disable-gvfs-metadata
(gedit: 3998) WARNING ** (timestamp): Hit unhandled case 11 (error opening file "/etc/resolv.conf": too many levels of symbolic links) in parse_error
(geditt:3998) CRITICAL ** (timestamp) _gedit_tab_save_as_async: assertion'tab-> state == GEDIT_TAB_STATE_NORMAL || tab->state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION || tab-> state == GEDT_TAB_STATE_SHOWING_PRINT_PREVIEW' failed
Additonally, when trying to open the old /etc/resolv.conf I am told it cannot be opened because "its target "/run/system/resolve/stub-resolv.conf" doesn't exist"
Edit 7: rm /etc/resolv.conf produces rm: cannot remove '/etc/resolv.conf': permission denied
I also cannot just drag it to the trash or delete it in other known ways.
I am beginning to wonder if reinstalling ubuntu entirely would be easier at this point.
It works! The problem seems to have been some odd final remnant of my old VPN. Upon removing it and restarting the machine the problem vanished. While I am still concerned about things like how the computer cannot find /etc/resolv.conf when I order it to destroy the file, I can cross that bridge later.
I would like to thank everyone who helped me with this, as I know you all have other things to do. I hope that someday I understand this stuff well enough to pay it forward.