Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Going on Vacation soon.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Fri Jul 23, 2004 6:44 am    Post subject: Going on Vacation soon. Reply with quote

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
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Fri Jul 23, 2004 1:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Fri Jul 23, 2004 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Sat Jul 24, 2004 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Sun Jul 25, 2004 9:11 am    Post subject: Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Sun Jul 25, 2004 9:32 am    Post subject: Reply with quote

what about using a 'client that actually works(tm)' :wink:

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
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Sun Jul 25, 2004 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum