Any way to hook or setup some domain's dns result ?

Is there any way to change the dns resolve result for NSURLSession or CFStreamCreatePairWithSocketToHost?
for example:
set abcd.com DSN resolve to 127.0.0.1 ?

There’s no obviously straightforward way to do this. Why do you need this? What’s your goal?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Some APP want to hide their real server domain and IP, avoid DDoS attack or something else, so we build a proxy server , running inside app, proxy app's network traffic, but this is not enough.
We want this proxy server become the real search to app, and handshake with the APP, so need a domain to make dns resolve to localhost (127.0.0.1).
Any way to hook or setup some domain's dns result ?
 
 
Q