[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to update dynamic dns?

Gary MacKay wrote:
> How would I go about automatically updating a dynamic dns service should the
> cable company change my IP address? Can I put a call to ipcheck somewhere? I
> suppose I could use a cron job to check the IP every x minutes, but why
> waste the clock cycles. There must be a better place to call it from. Anyone
> ever done this?

pref:alex {101} cat /etc/ppp/ppp.linkup
    ! /sbin/ipf -Fa -f /etc/ipf.rules
    ! /sbin/ipnat -CF -f /etc/ipnat.rules
    bg /home/alex/ipcheck/ipcheck.py -d /home/alex/ipcheck --syslog -i tun0 -q xxx xxx xxx.dyndns.org

pref:alex {102} crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.xrAsYk5276 installed on Sun Mar  4 12:34:45 2001)
# (Cron version -- $Id: crontab.c,v 1.18 2000/08/21 21:08:55 deraadt Exp $)
3,23,43 * * * * /home/alex/ipcheck/ipcheck.py -d /home/alex/ipcheck --syslog -i tun0 -q xxx xxx xxx.dyndns.org