Update README.md

This commit is contained in:
rafal 2026-01-29 20:50:26 +00:00
parent 9cd5fc093e
commit 1264607320

View File

@ -37,41 +37,41 @@ sudo pip3 install -r requirements.txt
### 3. Configuration ### 3. Configuration
``` ```
sudo nano config.json sudo nano config.json
```
Fill in your api_prefix and api_secret. Fill in your api_prefix and api_secret.
Domains List: Edit domains.txt and add domains one per line: Domains List: Edit domains.txt and add domains one per line:
``` ```
sudo nano domains.txt sudo nano domains.txt
''' ```
Example: Example:
''' ```
mydomain.com mydomain.com
vpn.mydomain.com vpn.mydomain.com
server.other-domain.net server.other-domain.net
''' ```
### 4. Install System Service ### 4. Install System Service
Copy the service file to systemd directory: Copy the service file to systemd directory:
''' ```
sudo cp ionos-ddns.service /etc/systemd/system/ sudo cp ionos-ddns.service /etc/systemd/system/
''' ```
Reload daemon, enable and start the service: Reload daemon, enable and start the service:
''' ```
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable ionos-ddns.service sudo systemctl enable ionos-ddns.service
sudo systemctl start ionos-ddns.service sudo systemctl start ionos-ddns.service
''' ```
### Monitoring ### Monitoring
Check the service status: Check the service status:
''' ```
sudo systemctl status ionos-ddns.service sudo systemctl status ionos-ddns.service
''' ```
View logs: View logs:
''' ```
tail -f /var/log/ionos-ddns.log tail -f /var/log/ionos-ddns.log
''' ```
### How it works ### How it works
The script runs in an infinite loop (every 10 minutes). The script runs in an infinite loop (every 10 minutes).