public function dns($dns = null)
    {
        if ($dns) {
            $this->_config['dns'] = $dns;
            return $dns;
        }

        if (isset($this->_config['dns'])) {
            return $this->_config['dns'];
        }

        return 'mongodb://localhost:27017';
    }
public function dns($dns = null)
    {
        if ($dns) {
            $this->_config['dns'] = $dns;
            return $dns;
        }

        if (isset($this->_config['dns'])) {
            return $this->_config['dns'];
        }

        return 'mongodb://localhost:27017';
    }
public function dns ( $ dns = null ) { if ( $ dns ) { $ this -> _config [ 'dns' ] = $ dns ; return $ dns ; } if ( isset ( $ this -> _config [ 'dns' ] ) ) { return $ this -> _config [ 'dns' ] ; } return 'mongodb://localhost:27017' ; }
Gets or Sets the DNS string for our connection in our configuration array.  If no DNS string is provided, the
default localhost DNS is returned.

@param null $dns
@return null|string
Gets or Sets the DNS string for our connection in our configuration array . If no DNS string is provided the default localhost DNS is returned .