Home > Operation and Maintenance > Linux Operation and Maintenance > How to manually configure DNS for Linux cloud server

How to manually configure DNS for Linux cloud server

PHPz
Release: 2023-05-16 15:22:29
forward
1661 people have browsed it

Configuring the DNS service of the cloud server is indispensable for the cloud server to access the public domain name. DNS is the record of the domain name pointing to the IP. Only by setting up the DNS server can the public network resolution record of the domain name be obtained.
The local DNS server configuration information is stored in the file /etc/resolv.conf. Write the following DNS configuration in the configuration information

nameserver 8.8.8.8 
nameserver 114.114.114.114
Copy after login

In this way, two default dns servers are successfully set and saved. Effective immediately.
If you need to specify the resolution record of a certain domain name, you need to use the /etc/hosts file and write

 ip地址 空格   域名
Copy after login

in the configuration information to manually specify the resolution IP of the domain name.

What versions of Linux are there?

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

The above is the detailed content of How to manually configure DNS for Linux cloud server. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template