Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 06, 2013 10:37 am 
Offline
Newbie

Joined: Tue Oct 30, 2012 9:58 am
Posts: 3
I have my domain set up and working in Linode manager, with the www getting served correctly via apache.

What I want to do (if at all possible) is take a subdomain, for instance home.mydomain.com and point it to my home IP address. The problem is that my home IP address is dynamic (with no option whatsoever to upgrade to static) so it will change (but probably not frequently).

Is there a way I can make this work? I'm happy to pay for a service to do this, but sadly most of the information I could find on this subject is outdated or doesn't apply in this situation.

Thanks. :)


Top
   
PostPosted: Thu Jun 06, 2013 10:43 am 
Offline
Junior Member

Joined: Sun Jun 24, 2012 4:27 pm
Posts: 29
Yes, via the API. Here's an example to get you started: https://github.com/snorp/linode/blob/ma ... eDynDNS.py


Top
   
PostPosted: Thu Jun 06, 2013 12:46 pm 
Offline
Newbie

Joined: Tue Oct 30, 2012 9:58 am
Posts: 3
Awesome! I actually had to use the script from this pull request though, as the API seems to have changed since the script was written: https://raw.github.com/Andomar/LinodeDy ... eDynDNS.py


Top
   
PostPosted: Thu Jun 06, 2013 2:36 pm 
Offline
Junior Member

Joined: Sun Jun 24, 2012 4:27 pm
Posts: 29
Obviously this requires you to run the script on your network somewhere, which can be a pain at times. Some routers offer Dynamic DNS features, which could be as simple as accessing a webpage somewhere. You could modify or take inspiration from that script to run on your linode. Of course, you would need to make sure it's adequately protected, and working as your router would expect.


Top
   
PostPosted: Thu Jun 06, 2013 2:41 pm 
Offline
Newbie

Joined: Tue Oct 30, 2012 9:58 am
Posts: 3
I've set this up as a cron job on my NAS, which seems to work great.


Top
   
PostPosted: Thu Jun 13, 2013 4:48 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
I'm also using my Linode DNS for dynamic DNS. A cron job on my home file server checks the IP (by calling a script on the Linode) once a minute, and if it has changed, submits a Linode API request to update the IP (which has a small TTL).

Yes, I realize that you can simplify the script by just telling Linode (via the API) to update to your current IP address, but then you're hammering Linode's API servers once a minute (bad) instead of your own servers once a minute (acceptable).


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group