This package is the public YaST2 API to configure the Bind version 9
Immediatelly stops the DNS service. Returns nonzero if operation succeeded, zero if operation failed.
Immediatelly starts the DNS service. Returns nonzero if operation succeeded, zero if operation failed.
Check if DNS service is running. Returns nonzero if service is running, zero otherwise.
Reads all global options of the DNS server.
Writes all global options of the DNS server. The taken argument has the same structure as return value of ReadGlobalOptions function.
Reads all zones of the DNS server.
Writes all zones to the DNS server, removes zones that are not mentioned in the argument. The structrure of the argument is clear from the example below.
Example 97.
my $zones = [ { 'options' => [ { 'value' => 'master', 'key' => 'type' }, { 'value' => '"localhost.zone"', 'key' => 'file' } ], 'zone' => 'localhost', 'ttl' => '1W', 'records' => [ { 'value' => '127.0.0.1', 'type' => 'A', 'key' => 'localhost.' }, { 'value' => '@', 'type' => 'NS', 'key' => 'localhost.' } ], 'file' => 'localhost.zone', 'type' => 'master', 'soa' => { 'minimum' => '1W', 'expiry' => '6W', 'serial' => 2004012701, 'zone' => '@', 'retry' => '4H', 'refresh' => '2D', 'mail' => 'root', 'server' => '@' } } ]; WriteZones ({}, $zones);