Skip to content

Simplified DNS, a custom protocol built on top of IP.

Notifications You must be signed in to change notification settings

ranjim/simDNS-over-IP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementing a Custom Protocol Using Raw Sockets

Introduction

This is a custom protocol that works like DNS (but much simpler than DNS) to find out the IP address corresponding to a domain name. The protocol is implemented using raw sockets in C language.

Compilation and Execution

Execute the following in the root directory of the project in the terminal:

  1. For color output, run the following command:
    make all
  2. To run the server, run the following command:
    sudo ./server
  3. To run the client, run the following command:
    sudo ./client <dest_mac>
  4. To clean the executables, run the following command:
    make clean
  5. In case of issues due to color encodings, run the following command:
    make nocolor

How to Use

To run commands in the client, run queries in the following format:

getIP <N> <domain-1> <domain-2> ... <domain-N>

where:

  • <N> is the number of domain names to query
  • <domain-1>, <domain-2>, ..., <domain-N> are the domain names to query

About

Simplified DNS, a custom protocol built on top of IP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published