diff --git a/common/.config/zsh/config/functions.zsh b/common/.config/zsh/config/functions.zsh
index 98f36e44..dd719739 100644
--- a/common/.config/zsh/config/functions.zsh
+++ b/common/.config/zsh/config/functions.zsh
@@ -14,6 +14,16 @@ function xsi() {
 }
 
 function whed() {
+    local script
     script=$(which "$1")
     [ -e "$script" ] && $EDITOR $(which "$script")
 }
+
+function hosthost() {
+    local ip
+    ip=$(
+        host -t A "$1" | awk '{print $4}' ||
+        host -t AAAA "$1" | awk '{print $5}'
+    )
+    host "$ip" | awk '{print $5}' | sed 's/.$//'
+}