A basic C program that shows the IP of the given domain name.
To build the project, run the following command:
gcc -o showip main.c
This should generate an executable showip.
To use showip, input the following command:
./showip <hostname>
This should print out the IP address of the provided hostname.
NOTE: This works for both IPv4 and IPv6 addresses.