# DNS Service Record for Agent Autodiscovery

{% embed url="<https://www.youtube.com/watch?v=OQQmCEinH6Q>" %}

In order for agents to find the SessionLimit Server dynamically, a service record must be created on local DNS servers. This record must be created manually and added to the **\_tcp** folder in the local domain zone.

1. DNS management interface opens (dnsmgmt.msc),
2. Active Directory Zone is expanded,
3. Enter the **\_tcp** folder,
4. Click "**Other New Record**" from the Action menu or right-click menu.
5. Select "**Service Location (SRV)**" from the window that opens and click "**Create Record**".
6. On the "**New Service Record**" screen, information is filled in as follows.

| Field       | Value                   | Description                                                |
| ----------- | ----------------------- | ---------------------------------------------------------- |
| Service     | \_seslimv2              | Mandatory and cannot be change.                            |
| Protocol    | \_tcp                   | Mandatory and cannot be change.                            |
| Port Number | 443                     |                                                            |
| Host        | servername.*domain.com* | It is the server where the SessionLimit role is installed. |

<figure><img src="/files/b3lrRpuEmB6ofr7f6rN6" alt=""><figcaption><p>Service Location (SRV)</p></figcaption></figure>

<figure><img src="/files/O9VFquQoQqPwK6DbVOWC" alt=""><figcaption><p>New Resource Record</p></figcaption></figure>

{% hint style="success" %}
When more than one **SessionLimit** server is installed, this process is repeated for each server.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sessionlimit.com/deployment/dns-service-record-for-agent-autodiscovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
