config/shell/functions: enable dns on dig-systems

This commit is contained in:
xeruf 2022-09-10 19:02:14 +02:00
parent 6a34f2d982
commit 0007fc4c5d
1 changed files with 3 additions and 2 deletions

View File

@ -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"