Is there a way to set a preference on an A record?

I have two ISP accounts and host a web server on the faster account. If it goes down, I want users to go to the web server on the slower connection. Each has an A record listed for public DNS but I notice that the records get round robined thus sending users to both sites. I only want users to visit the server on slow connection IF the fast connection is down.

I was hoping to set a preference on the records but it looks like setting preference is not an option for A records. Any ideas on how to accomplish the above?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can't do this with DNS.  There is no priority on DNS records for A names like there is for MX records.

You might be able to talk to your ISP and see if they can handle this using dynamic routing.   Use just one IP address for your Web server and the ISP change routing tables so that "fast ISP" link is down it will route using "slow ISP" link.
I don't think DNS is configurable to set like a 'link cost' on DNS A records.

I'll have a think on the answer!
There are numerous services on the web which help you accomplish this using a mechanism called DNS failover. These services monitor your system and check if services like port 80(HTTP) or any other service you configure are up and running. As soon as they detect a failure, they switch over to an alternate IP address you have provided.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.