Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Sep 20, 2011 12:50 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
I have my domain setup to recognize Linode's name servers as authoritative. I am wandering if it would be possible to setup the name servers to forward my domain to another IP if my Linode fails. Unfortunately I can't afford another Linode to act as a failover (if I could afford it, I would), so I am hoping to setup the name servers so that if my Linode fails for some reason (e.g. if something happens to the datacenter), it will forward to the IP of a friend's server until my Linode comes back online.

_________________
Kris the Piki Geeker


Top
   
 Post subject:
PostPosted: Tue Sep 20, 2011 3:59 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
You can change DNS via the API using the domain.resource.update method. When you detect that your Linode fails, hit that with the new target IP address and it will pick it up on the next refresh.

Determining when your Linode fails is an exercise for the reader, but a cron job involving curl or wget from your friend's server would probably do nicely.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Tue Sep 20, 2011 10:05 pm 
Offline
Junior Member

Joined: Wed Jun 29, 2011 4:22 am
Posts: 42
hoopycat wrote:
You can change DNS via the API using the domain.resource.update method. When you detect that your Linode fails, hit that with the new target IP address and it will pick it up on the next refresh.

Determining when your Linode fails is an exercise for the reader, but a cron job involving curl or wget from your friend's server would probably do nicely.



Is it good way to implement DNS-failover?


Top
   
 Post subject:
PostPosted: Wed Sep 21, 2011 8:03 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
It's a way to implement it, and will work, although there's quite a few ways for it to fail. For "business-class" production stuff, I'd generally use an already-implemented solution like DNS Made Easy.

_________________
Code:
/* TODO: need to add signature to posts */


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


Who is online

Users browsing this forum: No registered users and 4 guests


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