QUIRK My new ISP dynamicIP keeps changing

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,813
Reaction score
625
I added a crontab e for update of my freedns.afraid.org IP as afraid instructions and on one line.
Code:
2,7,12,17,22,27,32,37,42,47,52,57 * * * * sleep 54 ; wget -O - http://freedns.afraid.org/dynamic/update.php?[MD5hash] >> /tmp/freedns_svr_sub_dom_tld.log 2>&1 &

Now I need to write a further crontab or bash script to get my ISP's rdns
Code:
host 1.2.3.4   #host myIP
4.3.2.1.in-addr.arpa domain name pointer 4.3.2.1.dyn.plus.net.
Now how to get that into (1st line of) /etc/hosts
Code:
127.0.0.1  4.3.2.1.dyn.plus.net pi2.sub.dom.tld pi2 pi2.jb.local localhost localhost.localdomain localhost4 localhost4.localdomain4 IncrediblePBX.local

oh must be bed time!!!
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top