A collection of networking related tools that are small and simple to use.
- Clone/download this repository
- Unpack/cd into the directory
- Run
$ make
- Done
- dns: Fetch the IP address of the given site (A Record).
- getip: Fetches your public IP address.
- header: Fetches the HTTP header of a given site by issueing a GET request.
- dns: ./dns freebsd.org
96.47.72.84
- getip: ./getip
217.x.x.x
- header: ./header www.slackware.com
HTTP/1.0 400 Bad Request
Server: AkamaiGHost
Mime-Version: 1.0
Content-Type: text/html
Content-Length: 208
Expires: Sat, 04 Feb 2023 13:46:46 GMT
Date: Sat, 04 Feb 2023 13:46:46 GMT
Connection: close
The tools should be kept small and easy to maintain. In general, one program should do only one thing - and that well!
Functions that get called often should find there way into util.h so that all programs can benefit from them.
Currently, these tools target Linux. GCC and Clang both will build fine.
rilysh (https://github.com/rilysh) - For fixing multiple issues/bugs with the code.