微调获取DNS解析结果的代码

Signed-off-by: isdom <isdom.maming@gmail.com>