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