'Read the next token and interpret it as a DNS name.
@raises dns.exception.SyntaxError:
@rtype: dns.name.Name object'

def get_name(self, origin=None):

    token = self.get()
    if (not token.is_identifier()):
        raise dns.exception.SyntaxError('expecting    an    identifier')
    return dns.name.from_text(token.value, origin)
