Skip to content

A DNS client written in python which sends a single DNS A-name query and parses the response, based on the dig command

Notifications You must be signed in to change notification settings

uroosaimtiaz/dns_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Client

This is a simple DNS client implemented in Python. It can send DNS queries to a DNS server and parse the responses.

Features

  • Supports A and MX record queries
  • Parses the DNS message header and question, answer, authority, and additional sections
  • Handles domain name encoding and decoding

Usage

To use this DNS client, you need to have Python installed on your machine.

  1. Clone this repository:

git clone https://github.com/uroosaimtiaz/dns-client.git

  1. Navigate to the repository directory:

cd dns-client

  1. Run the DNS client with the domain you want to query as an argument:

python dns_client.py google.com

This will send an A record query for 'google.com' to Google's DNS server (8.8.8.8) and print the response.

Limitations

This DNS client is a simple implementation and does not support all features of the DNS protocol. For example, it does not support recursive queries, caching, or DNSSEC.

About

A DNS client written in python which sends a single DNS A-name query and parses the response, based on the dig command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages