refactor error
add dns query