config/shell/functions: enable dns on dig-systems
This commit is contained in:
parent
6a34f2d982
commit
0007fc4c5d
|
@ -268,10 +268,11 @@ u() {
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
dns() {
|
dns() {
|
||||||
|
local dig="$(which drill || echo "dig +short")"
|
||||||
# TODO implement rdns via -x
|
# TODO implement rdns via -x
|
||||||
for arg; do
|
for arg; do
|
||||||
drill A @8.8.8.8 -Q "${arg##*/}"
|
$dig A @8.8.8.8 -Q "${arg##*/}"
|
||||||
drill AAAA @8.8.8.8 -Q "${arg##*/}"
|
$dig AAAA @8.8.8.8 -Q "${arg##*/}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
alias sshk="$(case $TERM in (*-kitty) echo 'TERM=xterm-256color kitty +kitten';; esac) ssh"
|
alias sshk="$(case $TERM in (*-kitty) echo 'TERM=xterm-256color kitty +kitten';; esac) ssh"
|
||||||
|
|
Loading…
Reference in New Issue