centos modify DNS method

 

How to fix dns server? The dns server is composed of a resolver and a domain name server, and mainly stores the domain names and corresponding ip addresses of all hosts in the network.

There are many questions about DNS servers, and we will give a specific answer here.

1. What is dns?

dns refers to: domain name server (domain name server).

There is a one-to-one correspondence between domain names and IP addresses on the Internet.

While domain names are easy to recall, machines only know each other's IP addresses.

The conversion job between them is called domain name resolution.

Domain name resolution needs to be completed by a special domain name resolution server.

Dns is a server for domain name resolution.

Modify the DNS domain name. Under the WIN system, I believe everyone should be able to operate it. The following describes how to modify the DNS in the CENTOS system.

1. Login machine

2. Use the command vi /etc/sysconfig/network-scripts/ifcfg-eth0 to modify NDS

You can operate after pressing a

 

Save and exit :wp

3. Restart the network card or restart the machine to complete

Guess you like

Origin blog.csdn.net/weixin_73725158/article/details/132231436