1. Evan Gates
  2. bin

Source

bin / host

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" "$@"