Usage:
- Modify the
TARGET_IP
andTARGET_TTL
variables to specify the fake IP address and time-to-live value for the response. - Start the DNS server by running the script.
- Configure your DNS clients to use the IP address of the machine running the server as their primary DNS server.
Example: To start the DNS server listening on all network interfaces on port 53 with a fake IP address of '127.0.0.1' and TTL of 60:
$ python dns_server.py