1
0
mirror of https://github.com/namibia/demo-sync.git synced 2024-11-21 19:15:10 +00:00

fixed TTL

This commit is contained in:
Llewellyn van der Merwe 2017-08-01 16:50:31 +01:00
parent 2a7ab4bbe7
commit 63e5c010cb
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5

View File

@ -242,7 +242,7 @@ function setDNS () {
echo "started" echo "started"
# add new a record to tmp file # add new a record to tmp file
echoTweak "${row[1]}" 16 '\040' >> "/tmp/vdm_$tmpFile" echoTweak "${row[1]}" 16 '\040' >> "/tmp/vdm_$tmpFile"
echoTweak "1" 8 '\040' >> "/tmp/$tmpFile" echoTweak "1" 8 '\040' >> "/tmp/vdm_$tmpFile"
echo "IN A ${row[2]}" >> "/tmp/vdm_$tmpFile" echo "IN A ${row[2]}" >> "/tmp/vdm_$tmpFile"
# add new a record to zone file # add new a record to zone file
mv "/tmp/vdm_$tmpFile" "$FILEPATH" mv "/tmp/vdm_$tmpFile" "$FILEPATH"