summaryrefslogtreecommitdiff
path: root/getsrv
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2020-01-21 16:24:41 +0000
committerepoch <epoch@hack.thebackupbox.net>2020-01-21 16:24:41 +0000
commit1d0c58a40cdad6f9f00ddab28a8a87e59b101fa7 (patch)
treee208da3417cb4066f629fd8b02ce4ec9a79fc618 /getsrv
parentd1d712299808f819634aa9938741de9d5cb38986 (diff)
parentd3f5b8e73bbea0c6b40a10628e00e6cde40aeb66 (diff)
downloaduritools-1d0c58a40cdad6f9f00ddab28a8a87e59b101fa7.tar.gz
uritools-1d0c58a40cdad6f9f00ddab28a8a87e59b101fa7.zip
Merge branch 'master' of https://github.com/kkabrams/uritools
Diffstat (limited to 'getsrv')
-rwxr-xr-xgetsrv3
1 files changed, 2 insertions, 1 deletions
diff --git a/getsrv b/getsrv
index cb6daeb..019cdf0 100755
--- a/getsrv
+++ b/getsrv
@@ -19,7 +19,7 @@ elif which host >/dev/null;then
host -t SRV "$record" | cut '-d ' -f5-
echo "after host" >&2
else
- echo "fuck me. how am I supposed to get a srv record without dig or host?" >&2
+ echo "how am I supposed to get a srv record without dig or host? giving up." >&2
exit 1
fi | grep '^[0-9][0-9]* [0-9][0-9]*' \
| sort -rn \
@@ -34,3 +34,4 @@ fi | grep '^[0-9][0-9]* [0-9][0-9]*' \
| cut '-d ' -f2- \
| shuf \
| head -n1 \
+## that last pipeline tries to get pretty close to printing a properly weighted response, but not perfect.