Updates a record, creating it if not exists.

def update_record(self, name, address, ttl=60):
        """Updates a record, creating it if not exists."""
        record_id = self._get_record(name)
        if record_id is None:
            return self._create_record(name, address, ttl)
        return self._update_record(record_id, name, address, ttl)