improve resolve dns

Signed-off-by: Jack <jack.wgm@gmail.com>