> For the complete documentation index, see [llms.txt](https://docs.efento.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.efento.io/nb-iot-loggers/configuration/device-settings/dns-server.md).

# DNS server

The DNS server settings define how the logger resolves a server hostname to an IP address when a domain name is used instead of a fixed IP address.

{% hint style="info" %}
DNS settings are used only when the destination server is configured using a domain name or FQDN, for example *cloud.efento.io.* If a direct numeric IP address is configured, DNS resolution is not used.
{% endhint %}

## **Configurable parameters**

| Parameter         | Descritpion                                                                                                                                                   | Range                                                                                   |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| **DNS server IP** | Automatically setting the DNS server IP parameter means getting it from the network.                                                                          | *4 bytes of IPv4 address or automatic*                                                  |
| **DNS TTL**       | DNS time to leave - defines how long a domain name is stored locally before expiring and returning to the authoritative name servers for updated information. | *Range: 1-864000 (seconds) / Use DNS server value / Only refresh if communication fail* |

## **Configuration methods**

You can configure these settings in several ways:

* **Remotely from server** – see the [**Integrations** ](https://docs.efento.io/nb-iot-loggers/integrations/direct-data-integration.md)section for information on configuring the logger from your own server.
* **From the Efento mobile application** – connect to the logger and follow the relevant configuration path in the app.
* **Factory preconfiguration** – on request, Efento can supply devices with selected settings already configured according to your requirements. See [**Factory preconfiguration**](https://docs.efento.io/nb-iot-loggers/configuration/factory-preconfiguration.md) for the list of parameters that can be configured before shipment.

## **Configuration using the Efento mobile application**

To change these settings from the Efento mobile app, connect to the logger and tap the gear icon. Under the **Cellular** section, select **DNS server**.

### **DNS server selection**

The DNS server can be configured in two ways:

* **Automatic (network)** – the logger uses the DNS server provided automatically by the cellular network.
* **Manual** – allows you to specify the DNS server manually. When this option is selected, an additional **IP address** field appears where the address of the DNS server should be entered.

### DNS configuration

The **DNS configuration** setting determines how long the logger keeps a resolved server IP address in its local cache and when another DNS lookup is performed.

The following options are available:

* **Accept TTL from DNS server** – the logger uses the TTL value provided by the DNS server. The resolved IP address remains cached until the TTL expires. After expiration, the next scheduled transmission triggers a new DNS lookup.
* **DNS request after communication error** – the logger keeps using the resolved IP address as long as communication is successful. A new DNS lookup is performed only when communication with the current server IP address fails, for example due to a timeout or socket error. This option can help reduce cellular data usage and battery consumption by limiting the number of DNS requests.
* **Custom** – allows you to define a fixed DNS cache lifetime manually. When this option is selected, an additional **TTL (s)** field appears.

#### **TTL**

**TTL (Time To Live)** defines how long, in seconds, the resolved server IP address remains valid in the logger's local cache before another DNS resolution is required.

Shorter TTL values allow the logger to detect changes to the server IP address more quickly, but increase cellular communication and energy consumption because DNS lookups are performed more frequently.

Longer TTL values reduce the number of DNS requests and can help save battery power and cellular data, but may delay recovery if the server IP address changes.

<figure><img src="https://740246929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGPFUI36OraG706yJS7dJ%2Fuploads%2F1onj49LxeH12dYZfWOtC%2Fdns_configuration.PNG?alt=media&amp;token=3731d3c0-924f-41a4-ae03-e3c37da7b342" alt="" width="375"><figcaption></figcaption></figure>

After configuring the required options, tap **Save** to apply the settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.efento.io/nb-iot-loggers/configuration/device-settings/dns-server.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
