- 浏览: 211590 次
文章分类
最新评论
-
leo06:
请问你用的soap4r版本和rails版本分别是多少呀?我的始 ...
在Rails程序里面提供“天气预报”信息 -
yajie:
请问LZ,为什么会出现“无效的类别字符串”呢?
Sending an email from Delphi with Outlook -
cuiyinghua:
,管用!支持!
关于Firefox中的Flash不可以显示透明效果的问题 -
anke1460:
你好 我按照上面的做了,出现
no such file to ...
在Rails程序里面提供“天气预报”信息
You can run a DNS cache on your computer. This will speed up the process of looking up domain names when browsing. The difference is about 30-60 ms. Multiply that difference by the number of websites you visit a day for an approximate estimate of the speed improvement.
The following instructions are for someone with a broadband internet connection, where the computer gets it’s local IP address using DHCP from the router in your home or office.
Install dnsmasq in Ubuntu
Dnsmasq is a lightweight, easy to configure, DNS forwarder and DHCP server. It is designed to provide DNS and optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP for network booting of diskless machines.
First you need to make sure that Universe repository is enabled in your sources.list file
Install dnsmasq Using the following command
sudo apt-get install dnsmasq
uncomment the following line (remove “#” in the beginning) in the file /etc/dnsmasq.conf
listen-address=127.0.0.1
Now edit
/etc/dhcp3/dhclient.conf
and make sure the section below exactly like this, especially the line that says “prepend domain-name-servers 127.0.0.1;”
#supersede domain-name “fugue.com home.vix.com”;
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name,
netbios-name-servers, netbios-scope;
In the normal case, when you get a new dhcp lease, the dhcp3 client (tool) on your computer gets a new lease, and updates the
/etc/resolv.conf
file on your computer with the right values for the DNS servers to use (usually some machine in the network of your hosting provider). Adding the “prepend” option as we did above ensures that “127.0.0.1″ will appear on the top of the list of DNS servers. That magic number refers to your own computer. So in the future, whenever your computer needs to resolve a domain name, it will forward that request to dnsmasq (which is running at 127.0.0.1 - your computer). If the details for the domain name are already in you cache, well and good, dnsmasq will serve it up and make the process real fast. If it is not in the cache, then dnsmasq will look at the /etc/resolv.conf file and use the nameservers listed below the “127.0.0.1″. I hope that explains things.
Now open the file
/etc/resolv.conf
in your text editor. It probably looks like:
search yourisp.com
nameserver 217.54.170.023
nameserver 217.54.170.024
nameserver 217.54.170.026
The 127.0.0.1 is missing right now since you haven’t renewed your lease after you edited the /etc/dhcp3/dhclient.conf file. So, let us add that in manually this one time. After you do, your /etc/resolv.conf file will look like the following:
search yourisp.com
nameserver 127.0.0.1
nameserver 217.54.170.023
nameserver 217.54.170.024
nameserver 217.54.170.026
Now you need to restart the dnsmasq using the following command
sudo /etc/init.d/dnsmasq restart.
Now you are running a local DNS cache.
Testing Your Local DNS Cache
If you want to measure your speed improvement, type the command
dig yahoo.com
You will see something like “;; Query time: 38 msec” there.
Now type the command again, and you should see something like:”;; Query time: 2 msec”发表评论
-
OpenVPN以用户名、密码方式登录
2007-10-26 08:13 249481、建立数据库: 以管理员身份登录数据库: mysql> ... -
Canon LBP3500在Ubuntu 7.10里面不工作的解决方法
2007-10-29 07:25 1904如果在Ubuntu 7.04没有安装成功,请查看一下前面的Bl ... -
Canon LBP3500在Ubuntu下面的驱动程序下载
2007-10-29 08:07 2572这是我的box.net上面的共享文件,包含Canon LBP3 ... -
Linux内核开发人员合影
2007-09-11 02:35 1285原文地址:http://lwn.net/Articles/24 ... -
在Ubuntu下面安装Canon LBP3500打印机
2007-09-12 09:01 1460deb包下载:http://cweb.canon.jp/drv ... -
Canon LBP3500在ubuntu上面的安装(2)
2007-09-14 03:45 1943在以前的Blog里面提到Cannon LBP3500在Ubun ... -
Openfire随着Ubuntu自动启动
2007-09-14 03:54 3271openfire缺省情况下,是不随机启动的。为了解决每次都要手 ... -
解决Extman在Ubuntu里面无法登录的问题
2007-09-14 04:01 2120在配置Extmail系统成功以后,发现登录Extman(后台管 ... -
OpenFire配置LDAP
2007-09-14 08:10 4817在特性设置的时候,选择LDAP: OpenFire会提示选 ... -
Linux命令行打印
2007-09-17 03:56 1569查看打印机状态 lpq (显示缺省打印机状态) lpq -P打 ... -
Putty之旅
2007-09-06 07:11 1753今天解决了Putty的乱码问题,另外还有Xming这个免费的X ... -
SomeThing
2007-09-06 08:10 903测试网站速度: 可以用Apache的ab工具,Ubuntu自带 ... -
在Ubuntu上架设局域网消息服务器
2007-08-31 03:44 5094今天,在Ubuntu上面成功架设了Jabber即时通讯服务器。 ... -
如何在Linux下面查看CPU数量
2007-08-28 02:36 2578请输入: cat /proc/cpuinfo | grep p ... -
Ubuntu下面架设Extmail系统需要注意的问题(自己备忘)
2007-07-25 06:09 2788在Ubuntu 7.04下面架设Extma ... -
高效率的使用VIM
2007-07-02 08:15 1721虽然从很久前就开始用 ... -
Ubuntu十大应用程序 让你的电脑飞起来 [转发]
2007-06-15 02:05 1929仿佛是在一夜之间,Ubun ... -
10件Linux没有告诉你的事情
2007-05-15 05:59 969我给我的很多朋友都推荐过Linux,所以我算是他们的Linu ...
相关推荐
Ubuntu配置DNS,设置Ubuntu DNS缓存 1. 安装dnsmasq: # 安装dnsmasq的软件包 [linuxidc@linuxidc-Ubuntu ~] $ sudo apt-get install "dnsmasq" 2.设定dnsmasq接管本机的DNS解析请求: # 修改dnsmasq的配置文件 ...
找了好久才找到能在ubuntu下跑的dnsmasq包,用于分配DNS,搭配hostapd可以发射wifi
文件名: dnsmasq-2.89.tar.xz Dnsmasq 为小型网络提供网络基础设施:DNS、DHCP、路由器通告和网络引导。它被设计为轻量级且占用空间小,适用于资源受限的路由器和防火墙。它还广泛用于智能手机和便携式热点的网络...
dnsmasq源码
dnsmasq,dhcp dns源码
dnsmasq-2.85.tar.xz dnsmasq-2.85.tar.xz dnsmasq-2.85.tar.xz
dnsmasq为某个域名配置单独的DNS.txt
dnsmasq-2.59.tar.gz
这是个安卓使用的dnsmasq,文件复制到system/bin,需要配置文件
dnsmasq开源代码,是个不错的源码学习资料,绝对适合你了解网络方面的知识
实现了域名解析的功能,集成了dhcp和fttp服务器功能。
dnsmasq-2.62.tar.gz
dnsmasq-2.66.tar.gz源代码,省去了去官网下载且下载慢的痛苦
上网慢 真正的原因,仔细观察会发现,主要在...在ubuntu下面就要花费一番功夫了。 所以需要装一个 叫做 dnsmasq的软件,它能提供dns解析的功能。 当然,改造一下,也能提供dns缓存的功能。 具体操作 : 安装dnsmasq
自动dnsmasq更新 自动dnsmasq更新 该脚本将自动更新pgl.yoyo.org的列表。... 下载*您需要设置运行权限。 curl -o dnsmasq.sh https://raw.githubusercontent.com/MLWALK3R/Automatic-dnsmasq-update/master/dnsmasq.sh
dnsmasq-2.48-6.el6.i686.rpm
安装openstack,很多人在下载dnsmasq-2.65-1.el6.rfx.x86_64.rpm的时候出错,因此我们可以手动下载,再进行安装,安装指令:rpm -Uvh dnsmasq-2.65-1.el6.rfx.x86_64.rpm
我建议您使用 dnsmasq 的系统默认设置。 例如,在 Debian GNU/Linux 上,只需将/etc/init.d/dnsmasq中的DAEMON变量更改为/path/of/dnsmasq-chinadns/src/dnsmasq 。 然后使用命令sudo service dnsmasq restart重新...
dnsmasq-2.80-99.el7.centos.x86_64.rpm,那个2.80-1或者2.80-99是修订号,我随便写的99,写2.80-1是为了方便大家能搜索到。 这个文件适用于CentOS最新的dnsmasq,最新2.8版本,修复了之前的漏洞,CentOS 7目前已经...
将 Ubuntu 14.04 服务器设置为用于操作系统安装的 PXE 服务器。 provision.sh 脚本执行的步骤包括: 安装所需的包 安装和配置 Nginx 到服务器启动文件 为 NAT 配置 ufw 配置dnsmasq(DHCP服务器、DNS服务器、TFTP...