Skip to content

A pretty shitty DNS server written purely using python standard library.

Notifications You must be signed in to change notification settings

ShashwatAgrawal20/python-dns-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A DNS Server

I am using python3.11

A SHITTY DNS Server which resolves the user dns query made using the standard library only.

Note: Avoid installing the packages listed in requirements.txt, as they are related to development (e.g., pylint and mypy).

Usuage

  1. Run the server with resolving server
python src/main.py --resolver 8.8.8.8:53
  1. Make a request to the server
dig @127.0.0.1 -p 5353 google.com

This SHIT is not for production but you can try it as you primary DNS server you just have to modify src/main.py to bind the connection to port 53 instead of 5353 and you are good to you

I haven't checked this shit for multiple questions and stuff, maybe will do that later, but as of now it works like a charm.

About

A pretty shitty DNS server written purely using python standard library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages