# \[DNS] Temporary failure resolving...

In case you have problems with DNS servers.

The error looks like this:

<figure><img src="/files/IExQflf1lwrxwasDCAPr" alt=""><figcaption></figcaption></figure>

We will show two ways to solve the problem, through SSH-access and through sFTP-access.

## Use SSH

Use the **Nano** utility to browse and edit the **resolv.conf** file where you configure our server’s **DNS**. Enter the command

```
nano /etc/resolv.conf
```

The file editor opened before us **resolv.conf**

<figure><img src="/files/1Mkgt1Cztcxdpgrb421v" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
File will be empty, or it will contain text as a description, depending on the selected distribution **Linux**.
{% endhint %}

This file must specify **nameserver** for your **OS**.

{% hint style="info" %}
Which **nameserver** to choose? You can read more about this at the very end of the article. In this case, we will use **DNS 8.8.8.8** as the primary.
{% endhint %}

Enter this text in the file:

```
nameserver 8.8.8.8
nameserver 1.1.1.1
```

<figure><img src="/files/pSoMfEQc3OGL3hnAXZTN" alt=""><figcaption></figcaption></figure>

Press **Ctrl + X** to exit the file. Then press **Y** to save the changes.

<figure><img src="/files/EpKt4NvQ0Me611A2ZbqM" alt=""><figcaption></figcaption></figure>

Then press **Enter** to keep the file name as it is.

<figure><img src="/files/P3TaKIhEU0rPndTKBOSt" alt=""><figcaption></figcaption></figure>

## Use sFTP

Connect to our server via **sFTP**. Next we need to go to the directory /**etc** and find there the file **resolv.conf**

<figure><img src="/files/McQRTw8k1MgDWM35qzh1" alt=""><figcaption></figcaption></figure>

Open it with any text editor.

<figure><img src="/files/PdKEqk8vR2EaMUV0nxeH" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The file will be empty, or it will contain text as a description, depending on the **Linux** distribution you choose.
{% endhint %}

We need to add the optimal **nameserver** here, we will point them out several, in case of problems with one of them.

```
nameserver 8.8.8.8
nameserver 1.1.1.1
```

<figure><img src="/files/9AIMo7Sxks5bFle46pjD" alt=""><figcaption></figcaption></figure>

Great, save the file and upload it to the server.


---

# 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://spacecore.gitbook.io/wiki/en/network-and-security-configuration/resolv.conf-fix.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.
