'Sets the value of the DNS name
:param value:
A unicode string'

def set(self, value):

    if (not isinstance(value, str_cls)):
        raise TypeError(unwrap(u'\n                                                                %s    value    must    be    a    unicode    string,    not    %s\n                                                                ', type_name(self), type_name(value)))
    if value.startswith(u'.'):
        encoded_value = ('.' + value[1:].encode(self._encoding))
    else:
        encoded_value = value.encode(self._encoding)
    self._unicode = value
    self.contents = encoded_value
    self._header = None
    if (self._trailer != ''):
        self._trailer = ''
