dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 9d1f9cb1d3d3db00057fb4890ab1e8a5ce9215f2
parent 15fe4e6481384253dc5cc7906c84a80a1ac123e8
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 20 Apr 2022 01:50:22 +0100

Add net/rhosts script

Diffstat:
A.scripts/net/rhosts | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.scripts/net/rhosts b/.scripts/net/rhosts @@ -0,0 +1,7 @@ +#!/bin/rc +# Find all reverse host pointers for an addr by getting addrs with host(1), +# and then passing them back to host(1) in order to do the reverse lookups. + +for (a in `{host $* | tee /dev/stderr | awk '$2 == "has" && $3 == "address" {print $4}'}) { + host $a +}