Code Monkey home page Code Monkey logo

dns-resolver's Introduction

CS534 - Assignment 1 (DNS/DNSSec)

Installation:

- Without virtual environment:

$ pip3 install -r requirements.txt

- Using a virtual environment (Better):

$ virtualenv venv
$ . venv/bin/activate
$ pip3 install -r requirements.txt


- File Structure:

ajjikuttira-gagan-ganapathy-HW1
│   README.txt
│   mydig.py  // ENTRYPOINT INTO THE PROJECT
│   custom_resolver.py  // IMPLEMENTS HELPER METHODS FOR BOTH RESOLVERS
|   dns_resolvers.py // DNS RESOLVER IMPLEMENTATION (PART A)
|   dnssec_resolvers.py // DNSSEC RESOLVER IMPLEMENTATION (PART B)
|   ...
|   performance_test.py // MEASURE PERFORMANCE AND STORE IN CSV
|   performance_report.py // GENERATE CDF OF THE DNS RESOLUTION TIMES (PART C)
|   ...
|   mydig_output.txt // EXAMPLE OUTPUTS FOR A, NS, MX RECORDS USING A DNS RESOLVER
|   mydig_output_dnssec.txt // EXAMPLE OUTPUTS FOR A, NS, MX RECORDS USING A DNSSEC RESOLVER
└───


- Example commands (Using python v3.8.2):

- Running the DNS resolver:

$ ./mydig.py cnn.com A

$ ./mydig.py google.com NS

$ ./mydig.py amazon.com MX


- Running the DNSSEC resolver: (Just add the --dnssec flag to your queries)

$ ./mydig.py verisigninc.com A --dnssec

$ ./mydig.py verisigninc.com NS --dnssec

$ ./mydig.py exmaple.com MX --dnssec


NOTE:
- If incase the `./mydig.py` doesn't work, `cd` into your working directory and run

$ chmod +x mydig.py

now try running the script as `./mydig.py`

OR try running the project using `python3 mydig.py ...`


- Externel Libraries used:

- matplotlib (3.4.3)
- numpy (1.21.2)
- pandas (1.3.3)
- dnspython (2.1.0)
- sys
- time

dns-resolver's People

Contributors

codhek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.