- bash
- ls, cat, cut, grep, date, awk, md5sum, ssh, rsync
+---------------+ +---------------+
| [admgmt] | | [NS] | +
| | | | |
| ./domains/* | | | |
| | (1) | | | |
| v | (2) | | |
| ./tmp/zones/* | ------> | | |
| | ------> | | |
+---------------+ (3) +---------------+ | ...
+---------------+
-
update
Detecting new/deleted/changed zone file, and updating serial numbers. -
sync
Syncing zone directory by using rsync. -
reload
Throwing commands to reconfigure/reload name server via ssh.
$ cd /path/to/admgmt
$ git clone https://github.com/kteru/admgmt.git .
$ cp sample/conf/servers/ns_bind.conf conf/servers/
$ vi conf/servers/ns_bind.conf
(Edit to suit your environments)
$ cp sample/domains/example.com domains/
$ vi domains/example.com
(...snip...)
You Should change SOA serial number to __SERIAL__
.
$TTL 3600
@ IN SOA ns1.example.com. hostmaster.example.com. (
__SERIAL__ ;serial
10800 ;refresh
3600 ;retry
604800 ;expire
600 ) ;negative cache
$ make
[new zone ] example.com
[starting sync] 192.0.2.11 (Name Server 1)
[success] 192.0.2.11 (Name Server 1)
$ make sync
[starting sync] 192.0.2.11 (Name Server 1)
[success] 192.0.2.11 (Name Server 1)