i'm writing bash script add new domains.
script makes new zone file, adds zone file named.conf , adds ns record db.me.
script runs it's supposed (in local test environement) got question updating dns serial.
i'm able current serial running
to update serial use following commandcode:serienr=`cat db.me | grep 'serial' | grep -e '[0-9]{1,}' -o`
now question this, how new serial (nieuw) into db.me? ubuntu provide sort of way automatically?code:nieuw=$(($serienr+1))
cheers
edit: found out sed needed.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] updating dns
Ubuntu
Comments
Post a Comment