Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 422 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 422 Bytes

showip

A basic C program that shows the IP of the given domain name.

Build

To build the project, run the following command:

gcc -o showip main.c

This should generate an executable showip.

Usage

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.