Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of slow opening of web pages under ubuntu

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains how to solve the problem of slow opening of web pages under ubuntu. The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to solve the problem of slow opening of web pages under ubuntu.

1. Installation

Pdnsd has been added to the source, and the installation is very easy:

Sudo apt-get install pdnsd

During installation, it will ask you which configuration to choose. Choose manual here.

two。 Configuration

Sudo gedit / etc/pdnsd.conf

Modify

Server {

Label= "resolvconf"

}

For

Server {

Label= "resolvconf"

Ip=61.233.154.33

Ip=211.98.4.1

Timeout=30

Interval=30

Uptest=ping

Ping_timeout=50

Purge_cache=off

}

Where:

Ip=61.233.154.33

Ip=211.98.4.1

These two lines can also be written as a line ip=61.233.154.33211.98.4.1; represents the local DNS server address, there can be more than one, according to their own situation. This is DNS of TieTong.

The following parameters can be used by default.

Sudo gedit / etc/default/pdnsd

Change the value of START_DAEMON to yes.

3. Set the DNS of this machine

Sudo gedit / etc/resolv.conf

Insert a line before everything:

Nameserver 127.0.0.1

In particular, if you dial up the Internet with ADSL (configured through pppoeconf), you also need to modify the file:

Sudo gedit / etc/ppp/peers/dsl-provider

Add # before usepeerdns and comment out. Prevent ppp from forcing the use of remote DNS and overriding resolv.conf

If you enable the DHCP service, you need to

Sudo gedit / etc/dhcp3/dhclient.conf

Remove

# prepend domain-name-servers 127.0.0.1

The front "#".

4. Start pdnsd

Sudo / etc/init.d/pdnsd start

5. Simple test

Dig kaisir.com | grep time

The first result shows:;; Query time: 11 msec

The second result shows:;; Query time: 0 msec

The third result shows that:;; Query time: 0 msec

The fourth result shows that:;; Query time: 0 msec

Look, at this point, the second and subsequent parsing is directly hit the local cache, which greatly improves the speed of domain name resolution.

Thank you for your reading, the above is the content of "how to solve the problem of slow opening of web pages under ubuntu". After the study of this article, I believe you have a deeper understanding of how to solve the problem of slow opening of web pages under ubuntu. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report