GithubHelp home page GithubHelp logo

socolsrt / lumindns Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15 KB

This simple Python script allows you to create a DNS server with downstream servers and a whitelist that you can customize to your preference.

Home Page: https://www.lumindns.com

License: MIT License

Python 100.00%
dns dns-server

lumindns's Introduction

LuminDNS

LuminDNS is a Python script designed to provide a lightweight and efficient DNS caching server with support for asynchronous handling of DNS queries. By leveraging async DNS resolution, LuminDNS offers improved performance and responsiveness, making it an ideal choice for local DNS caching needs.

How to Use

Follow these steps to set up and run LuminDNS:

Install Dependencies: Make sure you have Python installed on your system. You also need to install the required dependencies. Run the following command to install them:

pip install aiocache dnspython async_dns

Clone the Repository: Clone the LuminDNS repository to your local machine.

Navigate to the Repository: Use the terminal to navigate to the cloned repository's directory.

Configure DNS Servers: Open the dns5.py file and locate the DNS_SERVERS list. Add or modify the IP addresses of DNS servers you want LuminDNS to forward queries to.

Run the Script: In the terminal, execute the following command to start the LuminDNS server:

python dns5.py

Point Clients to LuminDNS: Configure your devices or network settings to use the IP address of the machine running LuminDNS as the preferred DNS server. This will direct DNS queries to your LuminDNS instance.

Customization

LuminDNS can be customized to fit your requirements:

  • Cache Size: Adjust the MAX_CACHE_SIZE variable to control the maximum number of cached DNS responses.
  • Cache Expiration: Modify the cache expiration settings in the caches.set_config() section to determine how long DNS responses are retained in the cache.
  • Packet Size Limit: You can set a limit for the size of DNS packets that LuminDNS will handle by modifying the PACKET_SIZE_LIMIT variable.

Old Version

DNS_SERVERS - list of DNS servers that the script will access
DNS_TIMEOUT - Waiting time for a response from the DNS server

In private mode, you can restrict access by IP (dnsw.py)

WHITELIST - IP addresses that can connect to the dns server

Download the file to a location of your choice and run it in the background

python3 dns.py &

Would you like to support me financially?

  • My Bitcoin wallet - 14AA4FAdUYnTVTx5pSQjq2h8UJoA8Na89R
  • My Litecoin wallet - MSevKqUirTvQTkGxYechhNmBgAtDiZJq2x

lumindns's People

Contributors

socolsrt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.