,域名解析是網絡請求的第一步,該過程有時候會出現解析慢或域名劫持的情況。
我們可以通過攔截域名解析直接返回自定義的IP或者使用HTTPDNS解析域名,如果App使用的是OKHttp,可以直接使用OKHttp的DNS接口進行攔截。
如果App訪問網絡的庫沒有提供類似OKHttp的DNS接口,我們還可以通過hook getaddrinfo和android_getaddrinfofor買粉絲來實現域名解析攔截。
This is Ken's family. Ken is twelve years old , he is now in grade seven.
The old man is his grandfather. His father is a doctor who works in the base hospital. His mother is a teacher teachers in a middle school. The young lady is his aunt. she is a a bus driver.