How to use command line options

When Simple DNS Plus is running, you can use the following command line (DOS prompt) options:

(Make sure you run these from the directory where Simple DNS Plus is installed)

Backup

sdnsplus.exe -b <to-file>

Makes a backup of the live SQLite database use by Simple DNS Plus.

Can be used in scripts and schedulers to automate backups.

Clear cache

sdnsplus.exe -c

Removes all records from the cache.

Same as selecting "Clear Cache" from the main window / File menu.

Set remote password

sdnsplus.exe -m <password>

Enables remote management and sets the remote management password (see Options / Remote Management section).

This can be used to gain remote access to Simple DNS Plus - for example on a Server Core machine - see https://simpledns.com/kb/119.

Shutdown (DEPRECATED)

sdnsplus.exe -x

Shutdown Simple DNS Plus.

This option is deprecated and is available for backwards compatibility only. It will eventually be removed.
Use "NET STOP sdnsplus" instead.

Load/re-load/update zone (DEPRECATED)

sdnsplus.exe -z  z:<zone-name> [f:<file-name>] [p:<primary-ip>] [g:<group-id>]

Loads, re-loads, and/or updates the status of a specific zone.

The f:file-name parameter is only required if this is a new zone. Specify the full path to the file, and make sure to use quotes if the path contains spaces ("f:C:\my dns data...")

The p:primary-ip parameter is only required if this is a secondary zone.

The g:group-id is optional and refers to the numerical zone group ID.

This option is deprecated and is available for backwards compatibility only. It will eventually be removed.
Use HTTP API functions instead. Note that the HTTP API can also be accessed from the command line or through batch scripting - for example using cURL (https://curl.haxx.se).

Unload/remove zone (DEPRECATED)

sdnsplus.exe -u  <zone-name>

Unloads / removes a zone.

This option is deprecated and is available for backwards compatibility only. It will eventually be removed.
Use HTTP API functions instead. Note that the HTTP API can also be accessed from the command line or through batch scripting - for example using cURL (https://curl.haxx.se).

 Comments
Be the first to comment on this page:
(Never published. Used for replies and to show your Gravatar icon. Never used for any other purpose.)
Connect