I want to know whether it is possible to configure website DNS (In Godaddy) to use two IP address. If the first one does not work, it has to take the second one.
I want to setup my Blog, email server, microblog in my PC. If the PC is shutdown, then I want the appengine/wherever I configure to take over so that service is not interrupted.
For example: blog.devsundar.com ==> First IP address is my machine IP. If it is not accessible it has to take my blogger IP.
Is this possible? Feel free to comment even if it is ridiculous idea.
Thanks in advance.
Cheers.
It is a good idea, but as far as I know, it is not achievable that easily! You can have multiple DNS records for a domain; but when someone queries the DNS, first IP address received would be used. If, for example, the browser fails reaching the IP address for the domain, it will display a timeout error. Hopefully, next time you refresh the web page, another IP address will be received and contacted. In order to have "High Availability", solutions like "Linux Virtual Server" is a good choice, but it requires more work:
There are several rough edges on that approach, even if the DNS/reachability issue is solved (among others):
Synchronization: It's quite hard to keep everything in sync and keeping it transparent to users (if not impossible) in a domestic environment. For example: The database connection used for the blog might not be accessible from outside GoDaddy's network for security reasons. Keeping a local db and syncing with Godaddy's won't work well.
Email: It should pretty much work if Godaddy's configuration tool let's you set it's mail server in store-and-forward mode (They might not let you do that kind of things).
Failover is probably the worst possible way to provide fault tolerance. While I believe there are some extensions to the DNS system to support this - its still a bad idea even if they were supported by most clinets / DNS servers.
Is there a reason you can't use round-robin DNS entries (weighted to the "primary" server)?