You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-2
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,51 @@ It'll regularly check your IP address and update a selected Digital Ocean domain
11
11
- At least one domain name added to your account.
12
12
- At least a `cname` or an `A` record added to a domain that DODDNS will try to update.
13
13
14
-
#Docs
14
+
## Installation / Usage
15
15
16
-
You can see installation instruction, usage and other things [in the documentation](https://atomescrochus.gitbook.io/doddns/).
16
+
Using composer, you will need to run the following command to install DODDNS into the global space:
17
+
18
+
```
19
+
composer global require jpmurray/doddns
20
+
```
21
+
22
+
For DODDNS to work correctly you will have to make sure composer vendor's bin folder is added to your system's `$PATH`. You can test it by typing `doddns` in your terminal of choice: if it is installed correctly, you should be seeing commands usage instructions.
23
+
24
+
Next, you will have to add your DigitalOcean API token with the `token:add` command and then select which record you want to update with the `record:select` command.
25
+
26
+
Once it's done, you're good to go!
27
+
28
+
## Available commands
29
+
30
+
You can then use the doddns command to see a list of possible actions:
31
+
32
+
-`ip:last`: will output the last known IP that has been found / used and the timestamp of last update.
33
+
-`ip:current`: will query ipcheck.doddns.com to get your current IP address.
34
+
-`notifications:toggle`: turn desktop notification on or off (default is off).
35
+
-`record:delete`: removes saved record from the config file.
36
+
-`record:select`: Display a list of domains and records found with your DigitalOcean token to choose which to update with your current IP address.
37
+
-`record:update`: updates the selected record in config file with current IP.
38
+
-`token:add {token}`: will set your DigitalOcean personal access token, overwriting any existing value.
39
+
40
+
### Automatic updates
41
+
42
+
If you want DODDNS to update your selected domain record automatically with your current IP address, you will have to add entry to your cron tab like so:
After that, DODDNS will try to update every hours by itself.
49
+
50
+
## Updating DODDNS
51
+
52
+
### Version 3.0.0 and after
53
+
54
+
Version 3.0.0 changed a lot in term of workflow. If you install DODDNS from before 3.0.0, it is suggested that you remove the doddns folder entirely from the .config folder located in your home directory then start back from scratch so everything is clean.
55
+
56
+
### Before 3.0.0
57
+
58
+
If you've pulled or downloaded a new version, be sure to run doddns setup and choose the upgrade option to make sure your local database is up to date! You can also forgo the menu to upgrade directly using `doddns setup -U`.
17
59
18
60
## PRs
19
61
Any help is appreciated, please PR to the develop branch.
0 commit comments