Skip to content

Devansh3712/dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dns

Domain Name System (DNS) server and client implementation in Python. Supports building and parsing DNS messages.


                Local Host                     |  Foreign
                                               |
+---------+               +----------+         |  +--------+
|         | user queries  |          |queries  |  |        |
|  User   |-------------->|          |---------|->|Foreign |
| Program |               | Resolver |         |  |  Name  |
|         |<--------------|          |<--------|--| Server |
|         | user responses|          |responses|  |        |
+---------+               +----------+         |  +--------+
                            |     A            |
            cache additions |     | references |
                            V     |            |
                            +----------+       |
                            |  cache   |       |
                            +----------+       |

Running

  • Server
python3 server.py --resolver 8.8.8.8:53
  • Client
python3 client.py <domain>

To-Do

  • Add parsing for authority and additional records
  • Resolve recursively to find records

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages