Excerpt |
---|
This script allows you to set permissions and limits for DNS Manager clients. |
Table of Contents | ||
---|---|---|
|
Usage
Shell |
---|
client_prefs.sh <command> <login_name> <options> |
Where <command> is one of:
Argument | Parameter | Description |
---|---|---|
--update or -u | <login_name> | updates client account |
--info or -i | <login_name> | retrieves client information |
and <options> are are:
Argument | Parameter | Description |
---|---|---|
--add_remote_url or -ar | <true|false> | turns client add_remote_url option on/off (default: true) |
--modify_remote_url or -mr | <true|false> | turns client modify_remote_url option on/off (default: true) |
--add_dns_templates or - at | <true|false> | turns client add_dns_templates option on/off (default: true) |
--clean_url_zones or - cz | <true|false> | turns client "Remove zones no longer present in update source" option on/off (default: true) |
--ignore_other_urls or - io | <true|false> | turns client "Lock zones to an update source" option on/off (default: true) |
--warn_update or - wu | <number> | "Warn if an update from a location fails more than <number> times" |
--zone_refresh or -zr | <number> | Refresh time for DNS Zones |
--retry_time or -rt | <number> | Retry time for DNS Zones |
--expire_time or -et | <number> | Expire time for DNS Zones |
--minimum_ttl or -mt | <number> | Minimum TTL for DNS Zones |
--default_ttl or -dt | <number> | Default TTL for DNS Zones |
--maximum_dns_zones or -zl | <number> | limit number of DNS Zones (u or unlimited for unlimited) |
--maximum_update_url or -ul | <number> | limit number of update locations (u or unlimited for unlimited) |
--expiration_date or -exp | <date>(yyyy-mm-dd) | expiration date (u or unlimited for unlimited) |
--forward_zone_management or -fwd | <value> | value = 10 Manage forward DNS zones and records |
--reverse_zone_management or -rev | <value> | value = 10 Manage reverse DNS zones and records |
--e164_zone_management or -e164 | <value> | value = 10 Manage E.164 DNS zones and records |
Examples
In these examples, you are logged in as root
and you call the scripts by their directory.
Set Permissions and Limits for a Client
Shell |
---|
/usr/local/dnsmanager/bin/client_prefs.sh -u |
...
newclient --add_remote_url true --modify_remote_url true --add_dns_templates true --clean_url_zones false --ignore_other_urls true --warn_update 5 --zone_refresh 10800 --retry_time 3600 --minimum_ttl 86400 --expire_time 604800 --default_ttl 86400 --maximum_dns_zones u --maximum_update_url 10 --expiration_date u --forward_zone_management 10 --reverse_zone_management 20 --e164_zone_management 30 |
Client Permissions and Limits
Shell |
---|
/usr/local/dnsmanager/bin/client_prefs.sh -i newclient |
returns something like this:
Shell |
---|
Warn |
...
if |
...
an |
...
update |
...
from |
...
a |
...
location |
...
fails |
...
more |
...
than |
...
:[5]times |
...
|
...
to |
...
add/remove |
...
remote |
...
update |
...
locations:[true] |
...
|
...
to |
...
modify |
...
remote |
...
update |
...
locations:[true] |
...
|
...
to |
...
add/remove |
...
DNS |
...
templates:[true] |
...
|
...
zones |
...
no |
...
longer |
...
present |
...
in |
...
update |
...
source:[true](managed |
...
by |
...
administrator) |
...
|
...
zones |
...
to |
...
an |
...
update |
...
source:[true] |
...
|
...
time:[10800] |
...
|
...
time:[3600] |
...
|
...
time:[604800] |
...
|
...
TTL:[86400] |
...
|
...
TTL:[86400] |
...
|
...
expiration |
...
date:[Unlimited] |
...
|
...
number |
...
of |
...
remote |
...
update |
...
locations:[10] |
...
Currently |
...
used: |
...
(0) |
...
|
...
number |
...
of |
...
DNS |
...
zones:[Unlimited] |
...
Currently |
...
used: |
...
(0) |
...
|
...
DNS |
...
zones |
...
management:[10] |
...
(Manage |
...
forward |
...
DNS |
...
zones |
...
and |
...
records) |
...
|
...
DNS |
...
zones |
...
management:[20] |
...
(Manage |
...
reverse |
...
DNS |
...
records |
...
only) |
...
|
...
DNS |
...
zones |
...
management:[30] |
...
(View |
...
E.164 |
...
DNS |
...
zones |
...
and |
...
records) |
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.