User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am

DNSExit - Dynamic IP Updater on the Pi

Tue Oct 23, 2012 7:25 pm

so I was trying to find a Dynamic IP updater to run on the Pi this initially works won't know until I get a new IP but when I ran setup it changed my IP address

The choices aren't great for the free domains they give you but it's all free and appears to be working on my PI

.publicvm.com
.linkpc.net

To install the deb package has issues

Go here to sign up and get a free domain http://www.dnsexit.com/

SSH or login to Pi

Code: Select all

wget http://downloads.dnsexit.com/ipUpdate-1.6-2.tar.gz
tar xzvf ipUpdate-1.6-2.tar.gz 
sudo ./setup.pl
It asks for username, password gives options for domain you can have more than one if you do enter 0 1 you don't have to type out the domain (wasn't sure when I went though it)

Asks if you want to run as daemon choose yes to run on reboot (rebooted router and tested it updated my IP on their servers)

This will update your IP on their servers

run

Code: Select all

./ipUpdate.pl
To manually update.

Haven't used this client in years so feel free to check reviews.

Also I was wondering what other clients people have gotten to work directly on the PI
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

munklefish
Posts: 93
Joined: Tue Oct 02, 2012 5:35 pm
Location: Neumarkt in der Oberpfalz

Re: DNSExit - Dynamic IP Updater on the Pi

Tue Nov 13, 2012 11:39 pm

By far the simplest, quickest and clearest way ive found to do this is explained in this post and it literally takes seconds.

http://www.recantha.co.uk/blog/?p=18
http://www.codeclinic.de

filful
Posts: 1
Joined: Sat May 16, 2015 9:19 am

Re: DNSExit - Dynamic IP Updater on the Pi

Sat May 16, 2015 9:22 am

When I try to install setup.pl, I receive this error message:
Can't locate Http_get.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./dnsexit/setup.pl line 12.
BEGIN failed--compilation aborted at ./dnsexit/setup.pl line 12.

iprektcom
Posts: 1
Joined: Mon Sep 21, 2015 3:36 am

Re: DNSExit - Dynamic IP Updater on the Pi

Mon Sep 21, 2015 3:43 am

munklefish wrote:By far the simplest, quickest and clearest way ive found to do this is explained in this post and it literally takes seconds.
I would also suggest this free DDNS that has a TTL as low as 1 second refresh rate! You can't go any faster than that.
It comes with a very basic and simple API all explained in the "API" page here http://www.iprekt.com/?p=api.

Speed demo : https://www.youtube.com/watch?v=NJHzeSJdaXo

bengt_a
Posts: 15
Joined: Sun Jan 17, 2016 12:14 am

Re: DNSExit - Dynamic IP Updater on the Pi

Sun May 06, 2018 5:42 pm

filful wrote:
Sat May 16, 2015 9:22 am
When I try to install setup.pl, I receive this error message:
Can't locate Http_get.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./dnsexit/setup.pl line 12.
BEGIN failed--compilation aborted at ./dnsexit/setup.pl line 12.
From the command prompt, type

Code: Select all

export PERL5LIB=/home/pi/dnsexit/
Then try the setup again.

I get another error saying that it can't fetach [sic] url info from dnsexit.com. Please try again later...

drunkly
Posts: 5
Joined: Mon Aug 31, 2015 9:26 am

Re: DNSExit - Dynamic IP Updater on the Pi

Fri Sep 27, 2019 8:23 am

I know this is an old thread but and this is not related to raspberry per se but I spent several days figuring out what is failing and how to solve and I want to share the results in case someone else or me on the future need this information.

Target version: 1.71

Problem: ipUpdate.pl scritp doesn't starts on reboot or close randomly.

Possible cause: setup.pl script is "half cooked", after read the setup.pl, it doesn't install any of the services on the init folder. The admin has to install them manually.

How I have fixed it from the beginning:

Code: Select all

wget http://downloads.dnsexit.com/ipUpdate-1.71.tar.gz
tar xzvf ipUpdate-1.71.tar.gz
cd ipUpdate/dnsexit/
sudo su
./setup.pl
  • Insert settings for you domains/account

Code: Select all

cp init/ipUpdate-DNSEXIT.service /etc/systemd/system/ipUpdate.service
nano /etc/systemd/system/ipUpdate.service
  • Edit this file to wait until network is online. Add a restart on failure function:

Code: Select all

[Unit]
Description=DNSEXIT-Dynamic-IP-Updater
Wants=network-online.target
After=syslog.target network.target network-online.target

[Service]
PIDFile=/var/run/ipUpdate.pid
ExecStart=/usr/sbin/ipUpdate.pl daemon
Restart=on-failure
StartLimitBurst=2
StartLimitInterval=30

[Install]
WantedBy=multi-user.target

Code: Select all

systemctl enable ipUpdate
sudo update-rc.d ipUpdate enable
systemctl daemon-reload
cp ipUpdate.service /etc/init.d/
update-rc.d ipUpdate deafults
Conclusions: The setup.pl script is only ready to setup ipUpdate conf and run it manually. It is not ready to install it as service, start at boot, or restart on failure. It is responsability of the sysadmin to select the better init script for his distribution and adapt it how he likes.

malcolmxtc
Posts: 1
Joined: Thu Dec 12, 2019 6:21 pm

Re: DNSExit - Dynamic IP Updater on the Pi

Thu Dec 12, 2019 6:23 pm

Hey drunkly,

I'm getting the following error:

update-rc.d: error: cannot find a LSB script for ipUpdate

Any idea what I'm doing wrong? Thanks a lot.

Return to “General discussion”