Coder Social home page Coder Social logo

1999azzar / dns-mixer Goto Github PK

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

Turn your ESP32/8266 into a DNS mixer to provide dynamic DNS resolution using multiple DNS servers

License: MIT License

Python 100.00%
dns-server esp32 internet-positif micropython esp8266

dns-mixer's Introduction

DNS Mixer

Welcome to DNS-mixer! This project handles DNS requests and forwards them to multiple DNS providers, ensuring reliability and redundancy in DNS resolution.

Table of Contents

  1. Introduction
  2. Requirements
  3. Configuration
  4. Usage
  5. Troubleshooting
  6. Contributing
  7. License

Introduction

DNS-mixer is a Python-based DNS forwarding tool designed to provide flexibility and resilience by dynamically switching between multiple DNS providers. This project aims to offer a reliable DNS resolution mechanism.

Requirements

  • esp8266/esp32 device with MicroPython support. read more..
  • Network connectivity between the esp8266/esp32 and the devices making DNS requests read more..

Configuration

WiFi Configuration

Adjust the WiFi settings in the code to match your network credentials.

wifi_ssid = "your_wifi_ssid"
wifi_password = "your_wifi_password"
static_ip = "your_static_ip"

DNS Providers

Modify the list of DNS providers to suit your preferences.

dns_providers_ipv4 = ["9.9.9.9", "149.112.112.112", "1.0.0.1","94.140.14.14", "1.1.1.1", "8.8.8.8"]

Usage

Connecting to WiFi

The code includes a function to connect to WiFi. Ensure the esp8266/esp32 is within range of the WiFi network.

connect_to_wifi()

Handling DNS Requests

The main function handle_dns_request is responsible for processing DNS requests, forwarding them to a randomly chosen DNS provider, and handling LED indications.

handle_dns_request(data, addr)

Troubleshooting

If you encounter issues, refer to the troubleshooting section in the code. Enable debugging prints to gain insights into the code execution.

Contributing

Feel free to contribute to this project by submitting issues or pull requests. Your feedback and improvements are highly appreciated.

License

This project is licensed under the MIT License.

dns-mixer's People

Contributors

1999azzar 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.