When nekoray isn't closed properly, it usually messes up the /etc/resolv.conf file, so here is the lazy fix.
This script provides a quick fix for the /etc/resolv.conf file when nekoray isn't closed properly.
- Linux operating system
- Python 3+ installed
-
Store the script in a permanent location on your system.
-
Open terminal and edit the
.bashrcfile:sudo nano ~/.bashrc -
Add the following alias to the end of the
.bashrcfile, replacing[File path]with the path to the script:alias fixdns='sudo python3 [File path]/DNS\ Fixer.py'
-
Save the file with
CTRL+Oand exit withCTRL+X. -
Reboot your system for the changes to take effect.
-
Use the command
fixdnsto run the script and fix DNS issues:fixdns
This project is licensed under the MIT License.