Test when --dns not passed. Fixed AgentConfig.setDns