How to modify server DNS address in Linux

DNS is a server used to resolve the backend IP of domain names. Linux, like Windows, has customizable DNS addresses that are very easy to modify. When using Linux as a website server and running Wordpress queries slowly, you can try modifying a fast DNS server to solve the above problems.
Change here to Google DNS server (modify to the DNS server address you want to modify according to the actual situation)
1、 Modify configuration file
vi /etc/resolv.conf
2、 Modify according to format
nameserver 8.8.4.4
nameserver 8.8.8.8
Modify to Google's Domain Name System IP in the above format and save to take effect.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Several commands for viewing hard disk information in Linux

Viewing server hard disk information is one of the daily tasks of system administrators. This...

Linux restart command: reboot

Linux also has its own restart command, which is very simple to use. Generally, you only need to...

What types of websites are suitable for. ORG domain names ORG domain name suitable for scope sharing

If we are webmasters who built websites in the early days, we should know that COM, NET, and ORG...

Nginx configuration using SSL certificate method

The difference between free certificates and paid certificatesFirstly, free SSL certificates come...

The meaning and characteristics of the. io suffix domain name, as well as its suitability for the domain (whether it is worth registering)

IO is the abbreviation for British Indian Ocean Territory, therefore the. io domain is also...