From c09d91fe95fca4367f47c06fc808cd02a1a8e6a5 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Tue, 13 Aug 2019 14:40:54 -0400 Subject: add bins --- templates/.bin/rev_dns | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 templates/.bin/rev_dns (limited to 'templates/.bin/rev_dns') diff --git a/templates/.bin/rev_dns b/templates/.bin/rev_dns new file mode 100755 index 0000000..604774c --- /dev/null +++ b/templates/.bin/rev_dns @@ -0,0 +1,7 @@ +#!/bin/bash + +if [[ "$#" != "1" ]]; then + echo "usage: $0 " +else + dig +short "$1" | awk '/^([0-9]{1,3}\.){3}[0-9]{1,3}$/{print $0}' | xargs -I _ dig +short -x _ +fi -- cgit v1.2.3