The test uses ubuntu11.10, CERNET broadband, static IP address, and no route. if the route is used, it should not be very slow. if the route comes with the DNS cache function, you can try to disable ipv6, there is no need to restart the local DNS cache after the settings are complete. disable ipv6viewsourceprint? 1 (1...
The test uses ubuntu11.10, CERNET broadband, static IP, and no route.
If you are using a route, it should not be very slow. if the route comes with the DNS cache function, you can try to disable ipv6 and the local DNS cache is unnecessary.
Restart after setting
1. disable ipv6
View sourceprint? 1 (1) edit:
2 sudo vi/etc/default/grub
3. set GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash"
4 changed to GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash connector 6.disable = 1"
5 (2) update grub2:
6 sudo update-grub
2. create a local DNS cache
View sourceprint? 01 (1) install DNS cache software pdnsd:
02 sudo apt-get install pdnsd
03 during installation, it will ask you what configuration you choose. select "manual"
04
05 (2) edit/etc/pdnsd. conf:
06 sudo vi/etc/pdnsd. conf
07 modify
08 server {
09 label = "resolvconf ";
10}
11 is
12 server {
13 label = "OpenDNS ";
14 ip address = 208.67.222.222;
15 ip address = 208.67.220.220;
16 timeout = 30;
17 interval = 30;
18 uptest = ping;
19 ping_timeout = 50;
20 purge_cache = off;
21}
22. "OpenDNS" can be written as an identifier for future diagnosis;
23 ip = 208.67.222.222; ip = 208.67.220.220; represents the real DNS server's backup DNS server, which is what the network provider gives when you open the network.
24
25 (3) edit/etc/default/pdnsd
26 sudo vi/etc/default/pdnsd
27. modify the value of START_DAEMON to yes. (Boot)
28
29 (4) edit/etc/resolv. conf
30 add nameserver 127.0.0.1 to the first line
31 prevent resolv. conf from being overwritten:
32 sudo chattr + I/etc/resolv. conf
33
34 (5) start pdnsd
35 sudo service pdnsd start
From xiangxw's blog