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

Linux adds Swap partition to solve memory shortage problem

preparationFirstly, check if your system already has a Swap partition:swapon -sorfree -mIf no...

Requirements and usage suggestions for. app domain registration

.app域名是由Google推出的顶级域名(TLD),旨在提供安全的在线体验。作为.app域名的管理机构,Google要求所有.app域名都必须使用HTTPS来加密数据传输,以确保用户隐私和安全...

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...

What is a. ai domain name? Is an AI domain worth registering? Can DNSHE register an AI domain name?

The. ai domain represents one of the most important innovations of humanity, artificial...