Another DNS-zone serial number updater.
This repository has been archived on 2023-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Rodolphe Breard acc6dd81e1 Add a Patterns section to the README.
The documentation on how the DNS serial number have to be formated was
missing. Even if the pattern is very common, it is important to specify
it.
2015-11-14 19:32:44 +01:00
autoload Load functions only when needed. 2015-10-18 20:31:17 +02:00
ftplugin Add the possibility to turn off the automatic serial update. 2015-11-14 19:05:12 +01:00
plugin Load functions only when needed. 2015-10-18 20:31:17 +02:00
.gitignore Initial commit. 2015-10-18 00:59:31 +02:00
LICENSE.txt Initial commit. 2015-10-18 00:59:31 +02:00
README.md Add a Patterns section to the README. 2015-11-14 19:32:44 +01:00

vim-dnsserial

Apache License 2.0

Another DNS-zone serial number updater.

Why?

I know this not the first vim plugin available to update a DNS-zone serial number. Here is a few reasons why I chose not to use the canonical one:

  • there is no license and therefore it is not free;
  • it is unmaintained;
  • it is bugged;
  • it lacks functionalities.

It chose not to fork the original plugin but to write a new one from scratch mainly for legal purposes, but also because I did not found the code as simple as I expected.

Usage

By default, each time you save a bindzone file, the script will look for the DNS serial number and update it. You can also update it without saving the file by invoking the :DNSSerialUpdate function.

Patterns

In order to be detected, the DNS serial number must match the following pattern:

  • YYYYMMDDXX ; serial
    • YYYY is the year (4 digits);
    • MM is the month (2 digits);
    • DD is the day (2 digits);
    • XX is any non-negative number (1 or more digits);
    • the word serial is not case-sensitive;
    • there can be any number of blanks on each sides of the semicolon.

Configuration

You can turn off the automatic serial update by setting let g:dnsserial_auto_update = 0 in your vimrc.