This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
#From https://stackoverflow.com/questions/41723507/create-a-dns-server-and-redirect-all-request-to-my-site | |
#Translated and made it work with newer python | |
#Run as admin: sudo python3 redirecter.py | |
#You can test the server with the host command in linux: host google.com 127.0.0.1 | |
class DNSQuery: | |
def __init__(self, data): |