In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to solve the problem that ubuntu system is slow to surf the Internet using firefox browser. It is very detailed and has a certain reference value. Interested friends must finish reading it!
Surfing the Internet with browsers such as firefox under ubuntu is often much slower than surfing the Internet under windows, but careful people will find that slow time is spent on DNS search. Then we can cache DNS locally, that is, set up a DNS proxy server locally. The commonly used software are bind, djbdns, dnsmasq and pdnsd. Let's talk about using pdnsd to set up a permanent DNS proxy server, which means that after the system restart, the native cached DNS still exists and there is no need to find the real DNS to re-establish the cache.
1. Installation
Sudo apt-get install pdnsd
When installing, it will ask you what configuration to choose, please select "manual".
2. Configure pdnsd
Sudo gedit / etc/pdnsd.conf
Modify
Server {
Label= "resolvconf"
}
For
Server {
Label= "OpenDNS"
Ip=208.67.222.222
Ip=208.67.220.220
Timeout=30
Interval=30
Uptest=ping
Ping_timeout=50
Purge_cache=off
}
Label= "OpenDNS"
Among them, "OpenDNS" can be written casually, just a logo, for future diagnosis.
Ip=208.67.222.222
Ip=208.67.220.220
These two lines can also be written as one line, ip=208.67.222.222208.67.220.220; represents the real DNS server address, there can be more than one.
The following parameters can be used by default.
Sudo gedit / etc/default/pdnsd
Change the value of START_DAEMON to yes.
3. Add DNS proxy server to resolver
Sudo gedit / etc/resolv.conf
Add a sentence on the first line: nameserver 127.0.0.1
4. Prevent resolv.conf from being overwritten
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 "#".
If you have dial-up Internet access, then
Sudo gedit / etc/ppp/peers/provider
Add # before usepeerdns, that is, comment out the statement. In case the setting of resolv.conf is overridden by pppoe.
5. Start pdnsd
Sudo / etc/init.d/pdnsd start
6. Testing
Dig www.baidu.com | grep time
The results show that:;; Query time: 1 msec
Original result:;; Query time: 845 msec
The above is all the contents of this article entitled "how to solve the problem of slow access to the Internet using firefox browsers in ubuntu system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.