'Remove domain portion from the record name.
:param domain: Domain name.
:type domain: ``str``
:param name: Full record name (fqdn).
:type name: ``str``'

def _to_partial_record_name(self, domain, name):

    if (name == domain):
        return None
    name = name.replace(('.%s' % domain), '')
    return name
