setting up ddclient

Albert Charron albert at albertcharron.name
Thu Nov 22 16:54:43 UTC 2007


Derek Broughton wrote:
>
> Not _entirely_ unrelated I should think.  dhclient provides hooks for things
> like ddclient to run as soon as an IP address is obtained, so Wade would
> only see any sign that ddclient is doing anything at the same time as
> dhclient is doing something...
>   
My server at home has a fixed ip behind my router. If my router receives 
a new DHCP address from my ISP, ddclient on the server will update my 
dyndns address the next time the daemon executes its check...

What ddclient does is comparing the ip it has in cache with the one 
returned by dyndns' script (the ip returned by this script is the public 
address... the one the router is using on the Internet).  If the ip is 
the same and no updates were made for the last 15 days, ddclient forces 
an update. If the ip is the same but the last update occured within 15 
days, there is no updates. If the ip is different, ddclient updates it's 
cached file and does the update on dyndns...

ddclient will perform a check when it starts and at a regular period of 
time...

So, this is why I stated that dhclient and ddclient are unrelated...

Maybe I don't have the good information here and maybe ddclient will use 
dhclient to perform his check too, but as far as I know, ddclient have 
never set my dyndns ip to my internal address (even when my server was 
on DHCP)...

-- 
+--------------------------------------+
  Albert Charron
+--------------------------------------+
  Linux Counter member #157482
  Registered computers: 195048, 361906
+--------------------------------------+





More information about the ubuntu-users mailing list