From d0e6ada9c7efc8a0f12ab7e6b84449f7c360fea9 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Thu, 22 Aug 2024 11:26:18 -0700 Subject: [PATCH] removed extra dig --- modules/sshd-dns.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sshd-dns.mod b/modules/sshd-dns.mod index c10eddd..b51368e 100644 --- a/modules/sshd-dns.mod +++ b/modules/sshd-dns.mod @@ -28,7 +28,7 @@ for dnsconf in *.conf.dns; do for host in $(sed -e 's/[ ,]/\n/g' $conf | sed -n 's/[Dd][Nn][Ss]://p'); do echo host to lookup $host, if ip=$(_getip $host); then - echo substituting $(dig +short $host) + echo found ip, substituting $ip sudo sed -i 's/[Dd][Nn][Ss]:'$host'/'$ip'/g' $conf else echo unable to find ip address for $host