diff --git a/.config/shell/functions b/.config/shell/functions index 4b416c7..f4ff18c 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -268,10 +268,11 @@ u() { # Networking dns() { + local dig="$(which drill || echo "dig +short")" # TODO implement rdns via -x for arg; do - drill A @8.8.8.8 -Q "${arg##*/}" - drill AAAA @8.8.8.8 -Q "${arg##*/}" + $dig A @8.8.8.8 -Q "${arg##*/}" + $dig AAAA @8.8.8.8 -Q "${arg##*/}" done } alias sshk="$(case $TERM in (*-kitty) echo 'TERM=xterm-256color kitty +kitten';; esac) ssh"