'Return the DNS entry that corresponds to domain_id and id.'

@wsgi.Controller.api_version('2.1', MAX_PROXY_API_SUPPORT_VERSION)
@extensions.expected_errors((404, 501))
def show(self, req, domain_id, id):

    context = req.environ['nova.context']
    context.can(fid_policies.BASE_POLICY_NAME)
    domain = _unquote_domain(domain_id)
    floating_ip = None
    if netutils.is_valid_ip(id):
        floating_ip = id
    try:
        if floating_ip:
            entries = self.network_api.get_dns_entries_by_address(context, floating_ip, domain)
        else:
            entries = self.network_api.get_dns_entries_by_name(context, id, domain)
    except NotImplementedError:
        common.raise_feature_not_supported()
    if (not entries):
        explanation = _('DNS    entries    not    found.')
        raise webob.exc.HTTPNotFound(explanation=explanation)
    if floating_ip:
        entrylist = [_create_dns_entry(floating_ip, entry, domain) for entry in entries]
        dns_entries = _translate_dns_entries_view(entrylist)
        return wsgi.ResponseObject(dns_entries)
    entry = _create_dns_entry(entries[0], id, domain)
    return _translate_dns_entry_view(entry)
