Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

For example, I'll buy domain name at godaddy.com. I'll configure it with 2 A records with IPs 123.0.0.1 and 123.0.0.2.
Is it possible to ping it for availability and change A records dynamically by some script?

share|improve this question
    
As far as I know, GoDaddy does not have an API that will let you change DNS-settings via a script. What are you trying to accomplish with this? –  Bart De Vos Jun 22 '11 at 9:30
    
I'm trying to cover some sever fails at least partly –  Eugene Jun 22 '11 at 10:35

2 Answers 2

There are ways to do dynamic updates with BIND. But they are server-specific, and must be enabled and configured on the server.

You really need to be asking Godaddy what they support in this area.

Also note that dynamic DNS is a very poor way to do failover, as to be effective, it requires setting a very short TTL, which ends up wasting lots of bandwidth, and is generally annoying.

share|improve this answer

by the sound of it, you have a dynamically assigned ip address from your ISP. You may want to move your DNS to an entity such as DynDNS.com and use a dynamic DNS client on one of your hosts to update your DNS when your dynamic ip address changes.

share|improve this answer
    
This. afraid.org is also a nice alternative. You can also create a CNAME record for your domain with GoDaddy and have it point to the DNS service so that it's always pointing to the right IP –  uzzi09 Jun 22 '11 at 23:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.