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

Simple Method for Setting Linux VPS System Synchronization Time and Time Zone

80% of VPS users may choose their preferred system directly after purchasing VPS, and then...

Pagoda panel installation failure prompt "ModulaNotFoundError: No module named 'gevent'" troubleshooting and solutions

Recently, a customer reported that when installing the pagoda panel, they received a message...

CERTUM Certificate Brand Information

CERTUM was founded in Poland in 1998 and has developed into a professional certification body in...

Several commands for viewing hard disk information in Linux

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

How to change the root user password of Linux operating system

Changing the root user password of the Linux operating system is a critical operation, please...