Build
Status

Pure bash script that takes a hosts file on stdin, pings each host and generates a dot format network topology of all the IPs encountered on the way. Edit hosts and then run make to generate an SVG of key nodes in your netork.

View the SVG in a web browser.

$ firefox topology.svg

Test the script with a single host using the triple chevron syntax.

$ ./hosts2dot.sh <<< github.com

Hosts file format

The script accepts a standard system hosts file format but actually it only cares about the first host or IP on a line; the whole line is used to name the leaf node. In fact any file format may be used as long as each line begins with something that can be pinged.

127.0.0.1 localhost # for local people
216.58.213.99 - google
silobrighton.com # Zero waste