Difference between revisions of "Dyndns Updater"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) |
||
| Line 1: | Line 1: | ||
= Duck DNS = | = Duck DNS = | ||
| − | < | + | <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&token=0c2e8299-e5b3-4a98-84c2-3fc084be1f08&ip=" | curl -s -k -K - ) | RESULT=$( echo url="https://www.duckdns.org/update?domains=flirt,zr0ke,r0942&token=0c2e8299-e5b3-4a98-84c2-3fc084be1f08&ip=" | curl -s -k -K - ) | ||
echo ${DATE} ${RESULT} >> ${LOG_FILE} | echo ${DATE} ${RESULT} >> ${LOG_FILE} | ||
| − | </ | + | </source> |
| + | |||
= NO-IP = | = NO-IP = | ||
== Ubuntu 16.04 server == | == Ubuntu 16.04 server == | ||
Revision as of 15:15, 28 August 2018
Duck DNS
LOG_FILE=/var/local/duckdns/duck.log
DATE=$(date +"%F %T")
RESULT=$( echo url="https://www.duckdns.org/update?domains=flirt,zr0ke,r0942&token=0c2e8299-e5b3-4a98-84c2-3fc084be1f08&ip=" | curl -s -k -K - )
echo ${DATE} ${RESULT} >> ${LOG_FILE}
NO-IP
Ubuntu 16.04 server
sudo apt install ddclient
/etc/ddclient.conf example
## ddclient configuration file daemon=600 # check every 600 seconds syslog=yes # log update msgs to syslog mail-failure=redteam@bbva.com # Mail failed updates to user pid=/var/run/ddclient.pid # record PID in file. ssl=yes # use HTTPS ## Detect IP with our CheckIP server use=web, web=checkip.dyndns.com/, web-skip='IP Address' ## DynDNS username and password here login=RedTeam password=##YOUR PASSWORD## ## Default options protocol=dyndns2 server=members.dyndns.org ## Dynamic DNS hosts rrafara.dyndns.org
Restart service