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.
- Simple client-server architecture
- Resolves IP addresses to domain names and aliases
- Resolves domain names to IP addresses
- Provides informative responses to clients
- GCC compiler
- A Unix-like operating system (Linux, macOS, etc.)
- Clone the repository:
git clone https://github.com/OussamaElm0/DNSResolver.git
cd DNSResolver- Compile the server and client programs:
./compiler.shor
bash compiler.shAlternatively, you can compile the programs manually:
gcc -o server server.c
gcc -o client client.c- Start the server:
./serverThe server will start listening on port 1312.
- In a separate terminal, start the client:
./client- Follow the on-screen instructions to resolve IP addresses and domain names.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
For any questions or feedback, please contact:
