Source

bin / host

Full commit
1
2
3
4
5
#!/bin/sh
HOST=/usr/bin/host

REPLY=$(getent hosts "$@" | awk '{print $2, "has address", $1}')
[ -n "$REPLY" ] && echo "$REPLY" || "$HOST" "$@"