How to Manually Configure DNS on Linux Cloud Server

06-30-2023

This article introduces the knowledge about the method of manually configuring DNS on Linux cloud servers. How to deal with these situations! I hope you read it carefully and learn something!

Configuring the DNS service of the cloud server is indispensable for the cloud server to access the public network domain name. DNS is the record of the domain name pointing to the IP. Only when the DNS server is set can it be obtained To the public network resolution record of the domain name.
The file /etc/resolv.conf stores the local DNS server configuration information, write the following DNS configuration in the configuration information

nameserver 8.8.8.8 nameserver 114.114.114.114

In this way, two default dns servers have been successfully set, which will take effect immediately after saving.
If you need to specify the resolution record of a certain domain name, you need to use the /etc/hosts file and write in the configuration information

ip address space domain name

In this way, the resolution IP of the domain name is manually specified.

What are the versions of Linux

The versions of Linux include: Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and other versions. Among them, Deepin is one of the best-developed Linux distributions in China; UbuntuKylin is a derivative distribution based on Ubuntu; Manjaro is a Linux distribution based on Arch; the default Cinnamon desktop of LinuxMint is similar to Windows XP and is easy to use; Ubuntu is a desktop application The main Linux operating system.

The content of the method of manually configuring DNS on Linux cloud server is introduced here, thank you for reading. If you want to know more industry-related knowledge, you can pay attention to the Yisuyun website, and the editor will output more high-quality practical articles for you!

Copyright Description:No reproduction without permission。

Knowledge sharing community for developers。

Let more developers benefit from it。

Help developers share knowledge through the Internet。

Follow us