I'm looking to setup cheap redundancy for a website, such that I signup with 2 separate shared hosting accounts. The likelihood of both being down at the same time would be small.
Is there a way to point my domain (e.g. domain.com) to both my hosting accounts where server 1 (if active) is a primary and would normally handle all requests and server 2 is a fall back when server 1 goes down? i.e. The domain name would look to resolve to the primary server and if down then check the secondary server.
I'm not too clued up on DNS, servers and likes, so perhaps my suggestion above may be naive and if so is there a preferred way to do something like this?