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
.bashrc
file:sudo nano ~/.bashrc
-
Add the following alias to the end of the
.bashrc
file, replacing[File path]
with the path to the script:alias fixdns='sudo python3 [File path]/DNS\ Fixer.py'
-
Save the file with
CTRL+O
and exit withCTRL+X
. -
Reboot your system for the changes to take effect.
-
Use the command
fixdns
to run the script and fix DNS issues:fixdns
This project is licensed under the MIT License.