removed extra dig
parent
8502fb04a9
commit
d0e6ada9c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue