LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2001, 04:40 AM   #1
GOLDF1NG3R
LQ Newbie
 
Registered: Jul 2001
Location: UK
Distribution: RH 7.1
Posts: 24

Rep: Reputation: 15
Dynamic DNS


I currently have a cable modem which is assigned a dynamic IP address via DHCP from my service provider.

I have set up an account with DynDns.org which allows me to update the dns record for my domain via a small python script.

I am currently running this script via cron but wish to only run it when I am assigned a new IP address.

Could someone please point me in the right direction as to what is run when an IP address is obtained.

Cheers,

Chris
 
Old 11-20-2001, 04:45 AM   #2
GOLDF1NG3R
LQ Newbie
 
Registered: Jul 2001
Location: UK
Distribution: RH 7.1
Posts: 24

Original Poster
Rep: Reputation: 15
I should have RTFM!

just found the following in the dhcpcd man page:

/etc/dhcpc/dhcpcd-<interface>.exe
file which dhcpcd will try to execute whenever it
detects a change in IP address.
 
Old 11-20-2001, 06:42 PM   #3
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
DHCP

Poke around the man pages for dhcpcd some more. I know there's a flag or an argument that will make the client request the same IP from the ISP. If you've got a constant connection (or more or less depending on power outages or the cat chewing on the cable), you can pretty much trick your isp into giving you a static and avoid dealing with the dynamicDNS services.

Luck,

Finegan
 
Old 11-20-2001, 07:25 PM   #4
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
with the way dhcp works, a 'dhcp_request' packet by default asks for the same IP address back again. as long as no one requests and gets 'your' IP address, you will have the same one for quite a while...unless your ISP has rolling IP's.

jason
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic DNS exy123 Linux - Software 1 09-22-2005 01:25 AM
Dynamic DNS willhawes Mandriva 10 06-21-2004 04:36 AM
Dynamic DNS sporkit Linux - Networking 3 04-28-2004 08:07 AM
Dynamic DNS pyfsapple Linux - Networking 7 05-08-2003 08:05 PM
dynamic DNS linowes Linux - Networking 8 02-21-2003 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration