fixed connection test for name-server