Coder Social home page Coder Social logo

dns-lookup-tool-in-python's Introduction

DNS Lookup Tool

The basic process of this program is the following:

  1. Obtain domain name from the command line input
  2. Obtain the target DNS server from the command line input
  3. Construct a UDP (DATAGRAM) socket
  4. Construct a DNS query packet for the specific domain name, the type of the query should be A. (The types of queries is discussed in the RFC, and this subject will be explained in class.)
  5. Send the query to the target DNS server using UDP socket.
  6. Wait for the response to be returned from the server.
  7. If a reply comes back in 5 seconds, interpret the response and output the result to STDOUT, and then quit the program.
  8. If no reply comes back in 5 seconds, generate an error message and then quit the program.

python dnslookup.py "DNS server IP" domainName -> e.q.: python dnslookup.py 8.8.8.8 www.cnn.com send the domain name: www.cnn.com to the DNS Server: 8.8.8.8 at port 53 and get the IP address with other information.

dns-lookup-tool-in-python's People

Contributors

tigerlyb avatar

Stargazers

Abdullah Bakir  avatar

Watchers

 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.