> For the complete documentation index, see [llms.txt](https://spacecore.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacecore.gitbook.io/wiki/en/network-and-security-configuration/resolv.conf-fix.md).

# \[DNS] Temporary failure resolving...

{% hint style="danger" %}

### This content is outdated

**The knowledge base has moved →** [**https://wiki.spacecore.pro/**](https://wiki.spacecore.pro/)

This wiki is no longer updated. All current guides and articles are at the new address.
{% endhint %}

{% content-ref url="<https://wiki.spacecore.pro/>" %}
<https://wiki.spacecore.pro/>
{% endcontent-ref %}

***

In case you have problems with DNS servers.

The error looks like this:

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FagzhS2iMIrdaaHo1NY54%2Fimage.png?alt=media&amp;token=42655fc2-78ec-42b8-a6e3-2abdd36907f1" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2F68XohHsnkHR7rhN6qL8b%2Fimage.png?alt=media&amp;token=058bc63f-9173-4fb8-97e9-1575d428e75b" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Ftjl9uPQEwH6l2hw6nJW1%2Fimage.png?alt=media&amp;token=fe112c85-f9f4-45af-8657-2850c804fa6b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2F5mq54r6JjgjP14GHZXVh%2Fimage.png?alt=media&amp;token=24bc450c-3e53-473f-9b24-c86125dcf136" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FqY5w0t3E46VT5UziYHP6%2Fimage.png?alt=media&amp;token=58b5ae39-2c6e-441e-b305-ef1edb7427b4" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FAXHrLImgAEHw1ibbCftH%2Fimage.png?alt=media&amp;token=f24665ea-0f6c-404c-af2d-0e32596c8b89" alt=""><figcaption></figcaption></figure>

Open it with any text editor.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FK0Tsj7nJEVQl5VRtjvFd%2Fimage.png?alt=media&amp;token=bae547fe-4a71-491d-aea1-26ad7b14dee2" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FVXdkdXPkuau09RNBwBQM%2Fimage.png?alt=media&amp;token=aaa0fce7-953d-4f2f-886a-f7c7efcfa132" alt=""><figcaption></figcaption></figure>

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