aboutsummaryrefslogtreecommitdiff
path: root/bin/make-ssh-known-hosts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/make-ssh-known-hosts')
-rwxr-xr-xbin/make-ssh-known-hosts4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/make-ssh-known-hosts b/bin/make-ssh-known-hosts
index 34901af..77e31ed 100755
--- a/bin/make-ssh-known-hosts
+++ b/bin/make-ssh-known-hosts
@@ -26,8 +26,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
for i in "$@"; do
- IP4=$(host -t A "$i" | awk '{ print "," $NF }');
- IP6=$(host -t AAAA "$i" | awk '{ print "," $NF }');
+ IP4=$(host -t A "$i" | awk '/address/ { print "," $NF }');
+ IP6=$(host -t AAAA "$i" | awk '/address/ { print "," $NF }');
if test "${IP4}" = ",record"; then
IP4="";
fi