use DNS instead of IP

This improvement is for non-AWS env: DNS resolving will fail faster than routing