| Line 6: |
Line 6: |
| | <source lang="bash">LOG_FILE=/var/local/duckdns/duck.log | | <source lang="bash">LOG_FILE=/var/local/duckdns/duck.log |
| | DATE=$(date +"%F %T") | | DATE=$(date +"%F %T") |
| − | RESULT=$( echo url="https://www.duckdns.org/update?domains=flirt,zr0ke,r0942,m0rpheus&token=0c2e8299-e5b3-4a98-84c2-3fc084be1f08&ip=" | curl -s -k -K - ) | + | RESULT=$( echo url="https://www.duckdns.org/update?domains=flirt,zr0ke,r0942,m0rpheus&token=********-****-****-****-************&ip=" | curl -s -k -K - ) |
| | echo ${DATE} ${RESULT} >> ${LOG_FILE} | | echo ${DATE} ${RESULT} >> ${LOG_FILE} |
| | </source> | | </source> |
| Line 20: |
Line 20: |
| | ==/etc/ddclient.conf example== | | ==/etc/ddclient.conf example== |
| | <nowiki>## ddclient configuration file | | <nowiki>## ddclient configuration file |
| − | daemon=600
| + | daemon=600 |
| − | # check every 600 seconds
| + | # check every 600 seconds |
| − | syslog=yes
| + | syslog=yes |
| − | # log update msgs to syslog
| + | # log update msgs to syslog |
| − | mail-failure=redteam@bbva.com # Mail failed updates to user
| + | mail-failure=redteam@bbva.com # Mail failed updates to user |
| − | pid=/var/run/ddclient.pid
| + | pid=/var/run/ddclient.pid |
| − | # record PID in file.
| + | # record PID in file. |
| − | ssl=yes
| + | ssl=yes |
| − | # use HTTPS
| + | # use HTTPS |
| − | ## Detect IP with our CheckIP server
| + | ## Detect IP with our CheckIP server |
| − | use=web, web=checkip.dyndns.com/, web-skip='IP Address'
| + | use=web, web=checkip.dyndns.com/, web-skip='IP Address' |
| − | ## DynDNS username and password here
| + | ## DynDNS username and password here |
| − | login=RedTeam
| + | login=RedTeam |
| − | password=##YOUR PASSWORD##
| + | password=##YOUR PASSWORD## |
| − | ## Default options
| + | ## Default options |
| − | protocol=dyndns2
| + | protocol=dyndns2 |
| − | server=members.dyndns.org
| + | server=members.dyndns.org |
| − | ## Dynamic DNS hosts
| + | ## Dynamic DNS hosts |
| − | rrafara.dyndns.org</nowiki>
| + | rrafara.dyndns.org</nowiki> |
| | | | |
| | Restart ddclient service | | Restart ddclient service |