Skip to content

This script provides a quick fix for the /etc/resolv.conf file when nekoray isn't closed properly.

Notifications You must be signed in to change notification settings

khodekia/DNS-Fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

DNS-Fixer

When nekoray isn't closed properly, it usually messes up the /etc/resolv.conf file, so here is the lazy fix.

Overview

This script provides a quick fix for the /etc/resolv.conf file when nekoray isn't closed properly.

Prerequisites

  • Linux operating system
  • Python 3+ installed

Usage

  1. Store the script in a permanent location on your system.

  2. Open terminal and edit the .bashrc file:

    sudo nano ~/.bashrc
  3. 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'
  4. Save the file with CTRL+O and exit with CTRL+X.

  5. Reboot your system for the changes to take effect.

  6. Use the command fixdns to run the script and fix DNS issues:

    fixdns

License

This project is licensed under the MIT License.

About

This script provides a quick fix for the /etc/resolv.conf file when nekoray isn't closed properly.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages