# IRPCLicenseManagement.DoesLicenseHaveFeatureByVaultDNS

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [License management](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/DoesLicenseHaveFeatureByVaultDNS/

Badges: `Administration API / specialized` `admin` `no session` `idempotent`

Tells whether a feature is licensed for the vault that a host name points to, without a session.

- **Service:** [License management](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/index.md) `MFiles.IRPCLicenseManagement`
- **gRPC method:** `/MFiles.IRPCLicenseManagement/DoesLicenseHaveFeatureByVaultDNS`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/does-license-have-feature-by-vault-dns`
- **Request:** [`DoesLicenseHaveFeatureByVaultDNSRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/DoesLicenseHaveFeatureByVaultDNS/index.md#request)
- **Response:** [`DoesLicenseHaveFeatureByVaultDNSResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/DoesLicenseHaveFeatureByVaultDNS/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Not needed: the call can be made before logging in.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Needs no session; works anonymously, also on M-Files Cloud.
- Returns true if the server license has the feature, whatever host name is given. Otherwise,
  on servers that license vaults separately, the host name is looked up in the server's vault
  host name configuration and the vault license is checked.
- An unknown host name or an unsupported feature gives false, not an error.

<a id="request"></a>

## Request: DoesLicenseHaveFeatureByVaultDNSRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `vault_dns_name` | `string` | The host name of the vault, without `https://`. |
| `requested_feature` | [`LicensedProductFeature`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.LicensedProductFeature/index.md) | The feature to check. |

<a id="response"></a>

## Response: DoesLicenseHaveFeatureByVaultDNSResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `is_feature_enabled` | `bool` | True if the feature is licensed. |

<a id="related"></a>

## Related methods

- [DoesLicenseHaveFeature](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLicenseManagement/DoesLicenseHaveFeature/index.md): Tells which of the requested add-on features (OCR, M-Files Web, AI search and so on) the license allows.
