summaryrefslogtreecommitdiff
path: root/nocompile/bin/rdns
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile/bin/rdns')
-rwxr-xr-xnocompile/bin/rdns2
1 files changed, 2 insertions, 0 deletions
diff --git a/nocompile/bin/rdns b/nocompile/bin/rdns
new file mode 100755
index 0000000..347e416
--- /dev/null
+++ b/nocompile/bin/rdns
@@ -0,0 +1,2 @@
+#!/bin/sh
+dig +short -x "$1" | head -n1 | rev | tail -c+2 | rev