Package Details: dyndns 1.0.1-2

Git Clone URL: https://aur.archlinux.org/dyndns.git (read-only)
Package Base: dyndns
Description: dyndns (Dynamic DNS) syncing shell script with systemd script
Upstream URL: http://john.piasetzki.name/projects/dyndns
Licenses: unknown
Submitter: john.piasetzki
Maintainer: john.piasetzki
Last Packager: john.piasetzki
Votes: 32
Popularity: 0.175705
First Submitted: 2010-10-17 01:19
Last Updated: 2015-06-30 02:16

Dependencies (1)

Required by (0)

Sources (3)

Latest Comments

john.piasetzki commented on 2014-01-02 06:47

@hippieben they are seconds.

hippieben commented on 2013-12-31 17:52

What are the units for the sleep parameter? I'm assuming they're seconds, so that would make the default interval 10 minutes, correct?

john.piasetzki commented on 2012-11-18 19:46

@alpha197 edit line 20 of /usr/bin/dyndns to whatever you'd like the interval to be. I think dyndns has a minimum time of 5 mins (what I set to it) and may ban you if you update too much

alpha197 commented on 2012-11-18 19:31

Is there an option to change the update interval? Would be great. Thanks for your great work!

john.piasetzki commented on 2012-11-18 01:04

I've updated it to include the systemd script in the package.

fabrixxm commented on 2012-11-08 18:21

systemd service script for this:
modify /usr/bin/dyndns as cscorley comment:
line 62
- start_daemon
+ start_daemon &

It use /etc/conf.d/dyndnsd
---------------------------------------
username=<username>
password=<password>
host=<host>
---------------------------------------

/etc/systemd/system/dyndns.service
---------------------------------------
[Unit]
Description=Dyndns Service
After=network.target

[Service]
Type=forking
User=nobody
EnvironmentFile=/etc/conf.d/dyndnsd
ExecStart=/usr/bin/dyndns -D -u ${username} -p ${password} ${host}
Restart=on-abort

[Install]
WantedBy=multi-user.target
---------------------------------------

to enable
# systemctl enable dyndns.service
# systemctl start dyndns.service

cscorley commented on 2011-08-26 04:07

I have made a simple rc.d script for this. All that requires changing in the /usr/bin/dyndns is line 62:
- start_daemon
+ start_daemon &

It also uses a /etc/conf.d/dyndnsd file which requires the user to edit in the information.



/ $ cat /etc/rc.d/dyndnsd
#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/dyndnsd

PID=$(pidof -x -o %PPID /usr/bin/dyndns)
case $1 in
start)
stat_busy "Starting Dyndns Daemon"

# defaults to using syslog, and sendmail-ing cron output to local user
# to mail output to remote address instead, add "-m user@host"
# to dyndnsd_ARGS in /etc/conf.d/crond
if [[ -z $PID ]] && env -i PATH="/sbin:/usr/sbin:/bin:/usr/bin" /usr/bin/dyndns $DYNDNSD_ARGS; then

PID=$(pidof -x -o %PPID /usr/bin/dyndns)
echo "$PID" > /var/run/dyndnsd.pid
add_daemon dyndnsd
stat_done
else
stat_fail
exit 1
fi
;;

stop)
stat_busy "Stopping Dyndns Daemon"
if [[ ! -z $PID ]] && kill "$PID" &>/dev/null; then
rm_daemon dyndnsd
stat_done
else
stat_fail
exit 1
fi
;;

restart)
$0 stop
$0 start
;;

*)
echo "Usage: $0 {start|stop|restart}" >&2
exit 1

esac



/ $ cat /etc/conf.d/dyndnsd
#
# Parameters to be passed to crond
#
DYNDNSD_ARGS="-D -u <username> -p <password> <host>"