Answer the question
In order to leave comments, you need to log in
DNS caching in iOS
Maybe someone came across:
Do all applications on iOS have a common DNS resolver cache?
Roughly speaking, if Safari accesses lalala.domain.com and DNS returns ip 127.0.0.1, will other applications take this ip from the cache, or will they try to resolve it again by contacting the DNS server?
Answer the question
In order to leave comments, you need to log in
I've run into a situation where my NSURLConnection instance cached the wrong DNS entry (there was a problem with our DNS server), and even when fixed, Safari opened the "correct" site at that URL, my connection still accessed the wrong DNS - entries (maybe not the same IP, or maybe something else). I didn't create my own NSURLCache. Restarting the app didn't help.
As a result: the caching policy for correct and incorrect DNS records may differ, but the fact is: in some cases, “separate” caching exists.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question