Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 448 Bytes

File metadata and controls

25 lines (16 loc) · 448 Bytes

py-dns

Running the server

Run the DNS server with:

./server.sh

It only has a few hardcoded DNS entries for A records, as it's a simple example of a DNS server to learn how to parse DNS requests and respond to them.

If instead we want to run it in a forwarding mode, we can use the following command:

./server.sh --resolver <ip>:<port>

Testing

Test with:

dig @127.0.0.1 -p 2053 example.com