Skip to main content

Thread: updating dns


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

code:
serienr=`cat db.me | grep 'serial' | grep -e '[0-9]{1,}' -o`
to update serial use following command

code:
nieuw=$(($serienr+1))
now question this, how new serial (nieuw) into db.me? ubuntu provide sort of way automatically?

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