Focus on cloud service provider activities
Notes on website operation and maintenance

Reasons and solutions for slow PING speed of Linux server

Some netizens have reported that the selected ECS is slow in pinging. Is there any solution. It should be said here that the slow speed of most servers is related to our network, physical location and lines. If we choose domestic computer rooms, or CN2 GIA optimized lines, the speed must be good. However, if the line cannot be changed, can you adjust the PING speed. Here we can improve the speed by modifying DNS.

1. Modify nsswitch file

Found:

 vi /etc/nsswitch.conf

Then modify:

 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

Change to:

 hosts: files dns

2. Modify DNS

Modify the/etc/resolv.conf file.

 nameserver 8.8.8.8 nameserver 114.114.114.114

Change to domestic DNS.

Then see if the speed is better.

Recommended reading  Method record of configuring persistent DNS in Ubuntu system environment Method record of configuring persistent DNS in Ubuntu system environment Yesterday, when I helped a netizen to install Oneinstack script in the Linode machine, I was prompted that the official source program could not be downloaded. There is no problem with the server. The ping and SSH login are normal. It seems that there is a problem with the DNS that comes with the system. The DNS needs to be replaced to solve the problem. Here, Lao Zuo handles the modification of DNS [...] Updated: 2018/12/19 read the whole passage
Vote for you
Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Reasons and solutions for slow PING speed of Linux server