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.
Execute the following in the root directory of the project in the terminal:
- For color output, run the following command:
make all
- To run the server, run the following command:
sudo ./server
- To run the client, run the following command:
sudo ./client <dest_mac>
- To clean the executables, run the following command:
make clean
- In case of issues due to color encodings, run the following command:
make nocolor
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