Alamofire

(Charbel Mattar) #1

I would like to know what's the best (or any) practise for handling IP failover in iOS.

There are multiple A-Records for my domain behind the DNS like

1.1.1.1 A example.com
1.1.1.2 A example.com
1.1.1.3 A example.com

Most Browser know if the first one is unreachable, they will move to the second one and so on.

How does this work on iOS? Automatically? I am using Alamofire for most requests. I have searched the web and couldn't find any more information.

(Dave DeLong) #2

DNS resolution like this is handled deep down inside the operating system. I can't think of a situation where you'd need to handle this in-app.

1 Like