Skip to content

santiagotoscanini/py-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Basic implementation of DNS server in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published