My internet connection isn't working because the DNS settings were somehow altered. I initially thought that I deleted my ethernet driver by accident, but I was incorrect.
I have tried fixing the DNS setting manually in the GUI settings and nothing changed. I have also tried resetting the network manager in the terminal too and nothing changed.
Does anyone have any recommendations on what I should try next?
Try this out. It covers Plasma and GNOME. Not sure what desktop you are using. Things don't change that much so even though older it should still be good. The problem maybe your IPS DNS settings don't work and there are alternate DNS providers like Google. Check it out, maybe it will work or point you in the right direction.
Here you can verify which DNS servers are currently configured, temporary assign another DNS server and verify whether it works. If nslookup shows that DNS servers work fine then DNS is probably misconfigured.
This is a long shot, but is your time/date correct? I have seen that happen twice myself, both times because the clock was way off. Once on a desktop due to an expired battery, and once on a laptop due to a BIOS error. No server would connect because the time was so far off.
I think the date and time is correct. I see it displaying the correct date and time. Thanks for the suggestion. Anything that could be throwing it off is worth checking.
Obviously, your dns resolution is served by systemd-resolved dns caching service. You can verify its health using systemctl status systemd-resolved command.
Actual dns servers' addresses are listed in /run/systemd/resolve/resolv.conf file. You can try to verify whether these dns servers work using nslookup as described above.
Frankly, I do not like systemd-resolved and do not use it. I am afraid that I can not explain how to repair systemd-resolved at your system, but I can show how I configure dns resolution at my own system. Just in case you would like to give it a try.
get root privileges
disable systemd-resolved
create brand-new configuration for legacy dns resolver