config/shell: util content amendments
This commit is contained in:
parent
e2e252a7c1
commit
5d7f2b33a5
|
@ -274,11 +274,13 @@ dns() {
|
||||||
# allow changing DNS server with @
|
# allow changing DNS server with @
|
||||||
# TODO implement rdns via -x
|
# TODO implement rdns via -x
|
||||||
for arg; do
|
for arg; do
|
||||||
|
local trimmed="${arg##*//}"
|
||||||
|
local cut="${trimmed%%/*}"
|
||||||
if which host >/dev/null 2>&1
|
if which host >/dev/null 2>&1
|
||||||
then host "${arg##*/}" $server
|
then host "$cut" $server
|
||||||
else
|
else
|
||||||
$(echo $dig) A @$server "${arg##*/}"
|
$(echo $dig) A @$server "$cut"
|
||||||
$(echo $dig) AAAA @$server "${arg##*/}"
|
$(echo $dig) AAAA @$server "$cut"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
pkill signal
|
pkill signal
|
||||||
pkill aw-server
|
pkill aw-server
|
||||||
pkill aw-qt
|
pkill aw-qt
|
||||||
systemctl stop --user syncthing plasma-baloorunner kde-baloo
|
systemctl stop --user syncthing plasma-baloorunner kde-baloo openvpn-client@deltaPeak.service
|
||||||
|
|
Loading…
Reference in New Issue