|J. Fernando Sánchez de74385715 Version 1.0.1 with server||3 months ago|
|Dockerfile||3 months ago|
|Makefile||3 months ago|
|README.md||3 months ago|
|go.mod||5 months ago|
|go.sum||5 months ago|
|main.go||3 months ago|
|pingish||5 months ago|
Stupidly simple command line tool to resolve and ping hostnames.
I just use the binary to troubleshoot connectivity issues in scratch/alpine containers that don’t have ping/dig/curl/wget. Just copy the binary to the container, and problem solved.
The binary has to be built with
CGO_ENABLED=0 to avoid problems with alpine-based images.
Example of use:
You can start a server that will accept requests on
/ping?host=<target>, using the
--server flag. e.g.
To run it as a normal user in ubuntu, you might need to configure your host first:
sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
And/or set the capabilities of the binary:
sudo setcap cap_net_raw=ep pingish