Dump DNS Journal File (DMPDNSJRNF)

The Dump DNS Journal File (DMPDNSJRNF) command dumps the contents of a zone journal file in a human-readable form.

Journal files are automatically created by DNS server when changes are made to dynamic zones (e.g., by NSUPDATE command). They record each addition or deletion of a resource record, in binary format, allowing the changes to be re-applied to the zone when the server is restarted after a shutdown or crash. By default, the name of the journal file is formed by appending the extension .jnl to the name of the corresponding zone file.

This command converts the contents of a given journal file into a human-readable text format. Each line begins with add or del, to indicate whether the record was added or deleted, and continues with the resource record in master-file format.

Restrictions:

Parameters

Keyword Description Choices Notes
JRNFILE Journal file Path name Required, Positional 1
TOSTMF Output file Path name, *STDOUT Optional, Positional 2

Journal file (JRNFILE)

Specifies the journal file which is used to dump the zone journal.

This is a required parameter.

path-name
Specify the path name for the zone journal file where the journals dump to.

Output file (TOSTMF)

Specifies the name of a stream file where all command output is written.

*STDOUT
All command output goes to the standard output device (normally the display).
path-name
Specify the path name for a stream file where output should be written.

Examples

DMPDNSJRNF JRNFILE('/qibm/userdata/os400/dns/ns/example.com.db.jnl')

This command shows how to dump one journal file. Output from the command is sent to stdout and will look like the following:

add W2.EXAMPLE.COM. 3600 IN A       12.12.12.2
del EXAMPLE.COM. 172800     IN      SOA     EXAMPLE.COM.
postmaster.EXAMPLE.COM. 4 10800 3600 604800 86400
add example.COM. 172800     IN      SOA     EXAMPLE.COM.
postmaster.EXAMPLE.COM. 5 10800 3600 604800 86400
add W3.EXAMPLE.COM. 3600 IN A       12.12.12.3

Error messages

*ESCAPE Messages

DNS0013
Error processing command parameters.
DNS0065
Option 33 of i5/OS is required, but is not installed.
TCP7124
Program &1 in library &2 type *PGM ended abnormally.