Dynamic DNS update client for OpenWRT

979 views
Skip to first unread message

PatrickJ

unread,
Aug 9, 2011, 9:13:35 PM8/9/11
to Bifferboard
Hi All,

Is there a native equivalent of the inadyn client for the bifferboard?
I use inadyn on my server and need to run something similar on the
bifferboard so I can access it remotely.

On the server it was easy enough to get inadyn and install it using
the apt-get install application.

kind Regards

Patrick Simons.

Andrew Scheller

unread,
Aug 10, 2011, 5:54:24 AM8/10/11
to biffe...@googlegroups.com
> Is there a native equivalent of the inadyn client for the bifferboard?
> I use inadyn on my server and need to run something similar on the
> bifferboard so I can access it remotely.
>
> On the server it was easy enough to get inadyn and install it using
> the apt-get install application.

http://www.google.com/search?q=openwrt+dynamic+dns+client

HTH ;-)

Are the bifferboard and the server on different networks then?
If they're on the same network, they'd have the same public IP address
(therefore no point in running two dynamic dns clients), so you'd need
to set up different external ports for them (e.g. in your
router/firewall).

Lurch

Patrick Simons

unread,
Aug 10, 2011, 8:17:05 AM8/10/11
to biffe...@googlegroups.com
Google is a good starting point alright :).  The server I referred to below is in a different site. The bifferboard is the main server connected to the router in the site I need to access remotely so it needs a DDNS client. I'm wondering is it be possible to get Inadyn running on the Bifferboard as it worked fine for me on the other site and is listed as a compatible client on the http://dyn.com/
 
Maybe someone could recommend one that is used in production and works well on the Bifferboard?
 
Patrick


--
To unsubscribe send email to bifferboard...@googlegroups.com

nicolas le falher

unread,
Aug 10, 2011, 8:28:25 AM8/10/11
to biffe...@googlegroups.com
Hi,

For update my dns, I use updatedd.
You have some packages, each for DDNS supplier.

For ovh, I use this script from this blog :
http://lermit-informatique.blogspot.com/2009/08/ovh-le-dynhost-de-ovh-et-updatedd.html
Works like a charm.

Regards.

2011/8/10 Patrick Simons <patrick...@gmail.com>

--

Nicolas Le Falher.

PatrickJ

unread,
Aug 10, 2011, 1:00:42 PM8/10/11
to Bifferboard
Hi Nicolas,

I'm assuming I need to make a package from the source file prior to
installing it on the Bifferboard or can it be installed using opkg
using a previously compiled package? I've used opkg for installing
application packages such as nano, mjpeg_streamer etc. which were
compiled using the menu makemenu utility and copied to the bifferboard
using scp.

I'm not quite sure about the process for compiling source files which
are not included as sources within the OpenWRT distribution so I guess
I'll need to spend more time googling.

Patrick.


On Aug 10, 1:28 pm, nicolas le falher <n.lefal...@gmail.com> wrote:
> Hi,
>
> For update my dns, I use updatedd.
> You have some packages, each for DDNS supplier.
>
> For ovh, I use this script from this blog :http://lermit-informatique.blogspot.com/2009/08/ovh-le-dynhost-de-ovh...
> Works like a charm.
>
> Regards.
>
> 2011/8/10 Patrick Simons <patrickjsim...@gmail.com>
>
>
>
>
>
>
>
> > Google is a good starting point alright :).  The server I referred to below is in a different site. The bifferboard is the main server connected to the router in the site I need to access remotely so it needs a DDNS client. I'm wondering is it be possible to get Inadyn running on the Bifferboard as it worked fine for me on the other site and is listed as a compatible client on the http://dyn.com/
>
> > Maybe someone could recommend one that is used in production and works well on the Bifferboard?
>
> > Patrick
>
> > On 10 August 2011 10:54, Andrew Scheller <ya...@loowis.durge.org> wrote:
>
> >> > Is there a native equivalent of the inadyn client for the bifferboard?
> >> > I use inadyn on my server and need to run something similar on the
> >> > bifferboard so I can access it remotely.
>
> >> > On the server it was easy enough to get inadyn and install it using
> >> > the apt-get install application.
>
> >>http://www.google.com/search?q=openwrt+dynamic+dns+client
>
> >> HTH ;-)
>
> >> Are the bifferboard and the server on different networks then?
> >> If they're on the same network, they'd have the same public IP address
> >> (therefore no point in running two dynamic dns clients), so you'd need
> >> to set up different external ports for them (e.g. in your
> >> router/firewall).
>
> >> Lurch
>
> >> --
> >> To unsubscribe send email to bifferboard...@googlegroups.com
>
> > --
> > To unsubscribe send email to bifferboard...@googlegroups.com
>
> --
>
> Nicolas Le Falher.- Hide quoted text -
>
> - Show quoted text -

nicolas le falher

unread,
Aug 10, 2011, 1:08:51 PM8/10/11
to biffe...@googlegroups.com
> I'm assuming I need to make a package from the source file prior to
> installing it on the Bifferboard or can it be installed using opkg
> using a previously compiled package?
You can install with opkg and trunk repository or with menuconfig like
you have make before.

> I'm not quite sure about the process for compiling source files which
> are not included as sources within the OpenWRT distribution

They are already included, you need just to update feeds with :
./scripts/feeds update

$ ./scripts/feeds search updatedd
Search results in feed 'packages':
updatedd A tool to update dynamic dns services
updatedd-mod-changeip changeip.com
updatedd-mod-dyndns dyndns.org
updatedd-mod-eurodyndns eurodyndns.org
updatedd-mod-hn hn.org
updatedd-mod-noip no-ip.com
updatedd-mod-ods ods.org
updatedd-mod-ovh ovh.com
updatedd-mod-regfish regfish.com
updatedd-mod-tzo tzo.com
updatedd-mod-zoneedit zoneedit.com
--

Nicolas Le Falher.

Andrew Scheller

unread,
Aug 10, 2011, 7:30:01 PM8/10/11
to biffe...@googlegroups.com
> I'm assuming I need to make a package from the source file prior to
> installing it on the Bifferboard

Not necessarily!

> or can it be installed using opkg
> using a previously compiled package?

Assuming your bifferboard has a working internet connection, you just
need to do:
opkg upate
opkg install the_packge_you_want

Make sure to take note of the FAQ on
http://sites.google.com/site/bifferboard/Home/openwrt-git
though.

Lurch

PatrickJ

unread,
Aug 12, 2011, 11:58:20 AM8/12/11
to Bifferboard
I've managed to get the updatedd installed and the executable is now
in the /usr/bin directory.

When compared with Inadyn (which just executes and works using a
simple config file) updatedd seems to require a scheduled wrapper
script for it to work. Is this the case?

Nicolas, I had a look at your link above
http://lermit-informatique.blogspot.com/2009/08/ovh-le-dynhost-de-ovh...
but I haven't had any luck with running the script from the command
line. Should this be run using something other than sh as sh
generates lots of errors?

Patrick.

nicolas le falher

unread,
Aug 12, 2011, 12:09:19 PM8/12/11
to biffe...@googlegroups.com
The first test is update manually your dns with this command in a shell :
updatedd ${ddns_supp} -- --ipv4 ${ip} ${username}:${password} ${host}

${ddns_supp} : ddns supplier, list in previous mail.
${ip} : your public ip.
${username} : login of ddns supplier
${password} : password of ddns supplier
${host} : your dns

If it works, copy script, edit variables, and replace '#!/bin/bash' by
'#!/bin/ash'.
After, if it works, add that to crontab.

2011/8/12 PatrickJ <patrick...@gmail.com>:

PatrickJ

unread,
Aug 12, 2011, 7:43:16 PM8/12/11
to Bifferboard
I'm using dynadns so I tried the following:

updatedd ${dyndns.org} -- --ipv4 ${myIPAddress} ${myDynadnsUsername}:$
{myDynadnsPassword} ${myHost.com}

After typing this command into a terminal window and pressing enter it
reports back the following error:

bash: ${dyndns.org}: bad substitution

Patrick

On Aug 12, 5:09 pm, nicolas le falher <n.lefal...@gmail.com> wrote:
> The first test is update manually your dns with this command in a shell :
> updatedd ${ddns_supp} -- --ipv4 ${ip} ${username}:${password} ${host}
>
> ${ddns_supp} : ddns supplier, list in previous mail.
> ${ip} : your public ip.
> ${username} : login of ddns supplier
> ${password} : password of ddns supplier
> ${host} : your dns
>
> If it works, copy script, edit variables, and replace '#!/bin/bash' by
> '#!/bin/ash'.
> After, if it works, add that to crontab.
>
> 2011/8/12 PatrickJ <patrickjsim...@gmail.com>:

nicolas le falher

unread,
Aug 13, 2011, 2:14:00 AM8/13/11
to biffe...@googlegroups.com
> updatedd ${dyndns.org} -- --ipv4 ${myIPAddress} ${myDynadnsUsername}:$
> {myDynadnsPassword} ${myHost.com}
>
> After typing this command into a terminal window and pressing enter it
> reports back the following error:
>
> bash: ${dyndns.org}: bad substitution

If you launch command in a shell, you need to replace variable by the
real content.

--

Nicolas Le Falher.

PatrickJ

unread,
Aug 13, 2011, 9:17:49 AM8/13/11
to Bifferboard
I was not able the work out the correct syntax for the updatedd
command and it's was difficult finding information on the Internet.

I ended up using the following script I found on another forum:

#!/bin/sh
USER="myUserName"
PASS="myPassword"
DOMAIN="myDomain.com"

registered=$(nslookup $DOMAIN|sed s/[^0-9.]//g|tail -n1)

max_days=10 # max number of days to go without forcing an update
last_update=`date +%s`

max_seconds=`expr $max_days*24*60*60`

while :; do
current=$(wget -O - http://checkip.dyndns.org|sed s/[^0-9.]//g)

if [ $(($last_update+$max_seconds)) -lt `date +%s` ]
then
# set old_ip to be different, forcing an update
registered="0.0.0.0"
fi

[ "$current" != "$registered" ] && {
wget -O /dev/null http://$USER:$PA...@members.dyndns.org/nic/update?hostname=$DOMAIN
&&
registered=$current
}
sleep 300
done &

It seems to work fine for my setup.

Is there any benefit in using the updatedd program or should the above
script be okay to use?

Patrick

nicolas le falher

unread,
Aug 13, 2011, 9:47:07 AM8/13/11
to biffe...@googlegroups.com
> Is there any benefit in using the updatedd program or should the above
> script be okay to use?

No, if your script works, it's all good :).

--
Nicolas Le Falher.

Reply all
Reply to author
Forward
0 new messages