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


  Search this Thread
Old 11-20-2001, 04:40 AM   #1
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 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.


Old 11-20-2001, 04:45 AM   #2
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:

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

Rep: Reputation: 65

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.


Old 11-20-2001, 07:25 PM   #4
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.



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 > Forums > Linux Forums > Linux - Networking

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

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