Skip to content

jhx0/net-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

net-utils

A collection of networking related tools that are small and simple to use.

Usage

  1. Clone/download this repository
  2. Unpack/cd into the directory
  3. Run
$ make
  1. Done

List of programs

  • 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.

Sample output

  • dns: ./dns freebsd.org
96.47.72.84
  • getip: ./getip
217.x.x.x
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

Hacking

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.

Note

Currently, these tools target Linux. GCC and Clang both will build fine.

Thanks

rilysh (https://github.com/rilysh) - For fixing multiple issues/bugs with the code.

About

A collection of networking related tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published