- PHP v5.6
- cURL Extension
The default configuration file is config.json
.
php ~/dyndns/dyndns.php -update -validate -record-type 'A' -record-name 'www' -record-data '127.0.0.1'
[DynDNS] Loading configuration file.
[DynDNS] No configuration file supplied, using 'config.json'.
[DynDNS] The record '@' with type 'A' for 'bizbink.ca' with '127.0.0.1' successfully updated.
[DynDNS] The record '@' with type 'A' for '@' with '127.0.0.1' matches with '127.0.0.1'.
Flags | Description | Example |
---|---|---|
-config-file | Set configuration file. | -record-id 9584342995 |
-update | Update record using configuration/argument. | -record-id 9584342995 |
-validate | Validate the record matches configuration/argument or external address. | -record-id 9584342995 |
-record-id | Record ID, if required. | -record-id 9584342995 |
-record-type | Record type, if required. | -record-type 'A' |
-record-name | Record name, if required. | -record-name 'www' |
-record-data | New record data. | -record-data '127.0.0.1' |