/ + hostip

This commit is contained in:
fro
2025-11-01 19:35:11 -05:00
parent 5bea7fe73d
commit 9b0aa379d7

View File

@@ -104,6 +104,11 @@ alias tdt="printf '\x1b]10;#00ffff\x1b\\'; printf '\x1b]11;#161021\x1b\\';" # td
# networking # networking
# --- # ---
# https://serverfault.com/questions/170706/easy-way-to-get-ip-address-from-hostname-using-a-unix-shell
function hostip() {
python -c "import sys, socket; print (socket.gethostbyname('$1'))"
}
nmrestart() { nmrestart() {
systemctl restart NetworkManager systemctl restart NetworkManager
systemctl status NetworkManager systemctl status NetworkManager