Proper way to use DNS on iOS

Hello all,
I'm facing a troublesome pb.

Situation : for dev reasons (mainly security) my iOS phone can't conenct to my backend using internet : I have to connect using a dedicated WiFi.

Here is my problem : My iOS App has to connect to the backend using a domain name. As I want to use several test backends (using the same domain name) my solution was to mount a small DNS for each bench, and just modify my WiFi connection parameters on my phone to reach the right DNS, depending on my needs.

It works well on Android, but I can't figure what's wrong on my iOS phone...

When I chek the DNS logs ( a small dsnmasq ), I've got a bunch of query/replies addressed to : gsp-ssl.ls.apple.com , get-bx.g.aaplimg.com , e673.dsce9.akamaiedge.net, keyvalueservice.fe.apple-dns.net... well, tons of exchanges I don't understand, as my App only exchange on a simple url...

Does someone has any clue around that ?

Thanks a lot

Pierre
Proper way to use DNS on iOS
 
 
Q