diff --git a/tests/guix-package-net.sh b/tests/guix-package-net.sh
index cedfa3217b514ae807c1ae6e7e652fee9bc97843..cf3233bee2780ba8106a8aaab2cb23e0611e39e5 100644
--- a/tests/guix-package-net.sh
+++ b/tests/guix-package-net.sh
@@ -37,6 +37,14 @@ shebang_too_long ()
 	 -ge 128
 }
 
+if ! guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null \
+	|| shebang_too_long
+then
+    # Skipping.
+    exit 77
+fi
+
+
 profile="t-profile-$$"
 rm -f "$profile"