refactor ssh_spec
add check_dns