NEXTSERIAL

Section: Maintenance Commands (8)
Updated: 10-3-90
Index Return to Main Contents
 

NAME

nextserial - Increment the BIND SOA Serial number in a file  

SYNOPSIS

nextserial soafile  

DESCRIPTION

nextserial reads the soafile file for a line containing the (regular expression) pattern "Serial". This line is assumed to be the line containing the SOA Serial number. The number is read from the line and incremented. The line is then written with the new serial number. All other lines are put through unchanged.  

EXAMPLE

Given the soafile for our domain (wr.tek.com):

@       IN      SOA     wrgate.wr.tek.com.      wrap.wrgate.wr.tek.com. (
                                1       ; Serial
                                3600    ; Refresh
                                300     ; Retry
                                3600000 ; Expire
                                14400 ) ; Minimum
                IN      NS      wrgate.wr.tek.com.

Running nextserial soafile would result in the soafile looking like:

@       IN      SOA     wrgate.wr.tek.com.      wrap.wrgate.wr.tek.com. (
                                2       ; Serial
                                3600    ; Refresh
                                300     ; Retry
                                3600000 ; Expire
                                14400 ) ; Minimum
                IN      NS      wrgate.wr.tek.com.
 

SEE ALSO

hostcvt(8)  

BUGS

Since the program uses regex() to find the line with "Serial" on it, the soafile should have no other lines with that string on it.  

AUTHOR

Roger S. Southwick
rogers@dadla.wr.tek.com


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO
BUGS
AUTHOR

This document was created by man2html, using the manual pages.
Time: 06:17:29 GMT, December 12, 2024