View previous topic :: View next topic |
Author |
Message |
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Fri Jul 23, 2004 6:44 am Post subject: Going on Vacation soon. |
|
|
Now, I have a small problem with my line going off every Sunday night around Midnight for maintenance. This requires me to reset the connection and run DDCLIENT to update my DynDNS.
What I need is a Cron Job of sorts to make sure the DynDNS is updated and that when my computer boots up that it can access the internet. It's been a little unstable the last few weeks as far as connections go, and I'm unsure on how I should go about programming a Cron Job to check for Internet connection and update DynDNS records.
Thanks for your help. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Fri Jul 23, 2004 1:48 pm Post subject: |
|
|
What IP do you lease from your provider? Why not just try "borrowing" the leased IP and adding it to confd.net? I mean the worst that could happen is that the dhcp server on the other end wouldnt lease that addy to anyone else, right? _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Fri Jul 23, 2004 7:49 pm Post subject: |
|
|
gnuageux wrote: | What IP do you lease from your provider? Why not just try "borrowing" the leased IP and adding it to confd.net? I mean the worst that could happen is that the dhcp server on the other end wouldnt lease that addy to anyone else, right? |
What do you mean? My DSL connection resets the IP every time, and I can't change that. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Sat Jul 24, 2004 6:02 am Post subject: |
|
|
Right, but what I am saying is to take a look at the ip you lease when connected. (ifconfig | grep inet should give you the ip youve leased for that session) Copy that IP and add it to /etc/confd.net. I dont think that your provider would notice, & it would likely fix your issue. _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Sun Jul 25, 2004 9:11 am Post subject: |
|
|
gnuageux wrote: | Right, but what I am saying is to take a look at the ip you lease when connected. (ifconfig | grep inet should give you the ip youve leased for that session) Copy that IP and add it to /etc/confd.net. I dont think that your provider would notice, & it would likely fix your issue. |
How would I do that? Can you give an example? I'm using Kernel-side PPPoE. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Sun Jul 25, 2004 9:32 am Post subject: |
|
|
what about using a 'client that actually works(tm)'
Code: | * net-dns/ez-ipupdate
Latest version available: 3.0.11_beta8
Latest version installed: 3.0.11_beta8
Size of downloaded files: 80 kB
Homepage: http://gusnet.cx/proj/ez-ipupdate
Description: Dynamic DNS client for lots of dynamic dns services
License: GPL-2 |
/etc/dyndns.conf
Code: | #!/usr/bin/ez-ipupdate -c
service-type=dyndns
user=<your user:your password>
host=<your hostname>
interface=ppp0
max-interval=86400
period=300
cache-file=/tmp/ez-ipupdate.cache
daemon
|
Code: | echo ez-ipupdate -c /etc/dyndns.conf >>/etc/conf.d/local.start |
- runs itself in daemon mode
- checks every 'period' seconds for changes
- updates dns accordingly
HTH
T. _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Sun Jul 25, 2004 10:38 am Post subject: |
|
|
Would this also work for Custom DNS', too? _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
|