Skip to content

OussamaElm0/DNSResolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DNSResolver

DNSResolver is a simple client-server application designed to resolve IP addresses to their corresponding domain names and vice versa using DNS lookups. The server listens for incoming connections and processes requests from clients, returning the primary domain name, IP address, and any associated aliases.

Features

  • Simple client-server architecture
  • Resolves IP addresses to domain names and aliases
  • Resolves domain names to IP addresses
  • Provides informative responses to clients

Getting Started

Prerequisites

  • GCC compiler
  • A Unix-like operating system (Linux, macOS, etc.)

Installation

  1. Clone the repository:
git clone https://github.com/OussamaElm0/DNSResolver.git
cd DNSResolver
  1. Compile the server and client programs:
./compiler.sh

or

bash compiler.sh

Alternatively, you can compile the programs manually:

gcc -o server server.c
gcc -o client client.c

Usage

  1. Start the server:
./server

The server will start listening on port 1312.

  1. In a separate terminal, start the client:
./client
  1. Follow the on-screen instructions to resolve IP addresses and domain names.

Example

Demo

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

Contact

For any questions or feedback, please contact:

About

A simple DNS resolver in C that resolves domain names to IP addresses using socket programming.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published