In case you have problems with DNS servers.
The error looks like this:
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252FagzhS2iMIrdaaHo1NY54%252Fimage.png%3Falt%3Dmedia%26token%3D42655fc2-78ec-42b8-a6e3-2abdd36907f1&width=768&dpr=4&quality=100&sign=a48e898b&sv=1)
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
The file editor opened before us resolv.conf
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252F68XohHsnkHR7rhN6qL8b%252Fimage.png%3Falt%3Dmedia%26token%3D058bc63f-9173-4fb8-97e9-1575d428e75b&width=768&dpr=4&quality=100&sign=13e83922&sv=1)
File will be empty, or it will contain text as a description, depending on the selected distribution Linux.
This file must specify nameserver for your OS.
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.
Enter this text in the file:
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252Ftjl9uPQEwH6l2hw6nJW1%252Fimage.png%3Falt%3Dmedia%26token%3Dfe112c85-f9f4-45af-8657-2850c804fa6b&width=768&dpr=4&quality=100&sign=64e050e2&sv=1)
Press Ctrl + X to exit the file. Then press Y to save the changes.
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252F5mq54r6JjgjP14GHZXVh%252Fimage.png%3Falt%3Dmedia%26token%3D24bc450c-3e53-473f-9b24-c86125dcf136&width=768&dpr=4&quality=100&sign=b873b69a&sv=1)
Then press Enter to keep the file name as it is.
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252FqY5w0t3E46VT5UziYHP6%252Fimage.png%3Falt%3Dmedia%26token%3D58b5ae39-2c6e-441e-b305-ef1edb7427b4&width=768&dpr=4&quality=100&sign=685d2b86&sv=1)
Use sFTP
Connect to our server via sFTP. Next we need to go to the directory /etc and find there the file resolv.conf
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252FAXHrLImgAEHw1ibbCftH%252Fimage.png%3Falt%3Dmedia%26token%3Df24665ea-0f6c-404c-af2d-0e32596c8b89&width=768&dpr=4&quality=100&sign=f94f7fef&sv=1)
Open it with any text editor.
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252FK0Tsj7nJEVQl5VRtjvFd%252Fimage.png%3Falt%3Dmedia%26token%3Dbae547fe-4a71-491d-aea1-26ad7b14dee2&width=768&dpr=4&quality=100&sign=f0749b86&sv=1)
The file will be empty, or it will contain text as a description, depending on the Linux distribution you choose.
We need to add the optimal nameserver here, we will point them out several, in case of problems with one of them.
![](https://wiki.spacecore.pro/~gitbook/image?url=https%3A%2F%2F287241268-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FyXvdNIxNLIOcexv7AfU2%252Fuploads%252FVXdkdXPkuau09RNBwBQM%252Fimage.png%3Falt%3Dmedia%26token%3Daaa0fce7-953d-4f2f-886a-f7c7efcfa132&width=768&dpr=4&quality=100&sign=40a39dde&sv=1)
Great, save the file and upload it to the server.
Last updated