Archive for the 'DNS' Category

安装 djbdns DNS 缓冲服务器

Auto Date Tuesday, May 12th, 2009
A DNS recursor consults three nameservers to r...
Image via Wikipedia

服务器使用 OpenDNS 的时候解析有些网站比较慢,想到用 DNS 缓冲服务。自然就想到了 djbdns 。

首先安装 djbdns。需要先安装 daemontoolsucspi-tcp

在 RHEL 上编译以上三个软件包时,必须先运行

echo gcc -O2 -include /usr/include/errno.h > conf-cc

然后配置为内部转发服务器。

echo 208.67.222.222 > /etc/dnscache/root/servers/@
echo 1 > /etc/dnscache/env/FORWARDONLY

查看服务状态:
     svstat /service/dnscache

查看 DNS 日志:
tail -f /service/dnscache/log/main/current

启停服务:
  • svc -h /service/yourdaemon: sends HUP
  • svc -t /service/yourdaemon: sends TERM, and automatically restarts the daemon after it dies
  • svc -d /service/yourdaemon: sends TERM, and leaves the service down
  • svc -u /service/yourdaemon: brings the service back up
  • svc -o /service/yourdaemon: runs the service once

Reblog this post [with Zemanta]

Post to Twitter

DNS failed while receiving responses multiple RRs of singleton type

Auto Date Wednesday, April 15th, 2009
A DNS recursor consults three nameservers to r...
Image via Wikipedia

这个问题是由于一个名字对应多个相同的 CNAME 而引起的。

导致从服务器从主服务器上复制失败。检查办法:

dig axfr example.com @master-server > tmp

named-checkzone example.com tmp

dns_master_load: tmp:562: my.example.com: multiple RRs of singleton type

检查 tmp 文件的 562 行就是重复的记录。

Reblog this post [with Zemanta]

Post to Twitter

Free DNS report

Auto Date Monday, October 20th, 2008

查 DNS, RBL 等的工具很多, 但是这个免费的网站提供的一些东西还是有很多新意。

例如检查 taobao.com 的时候会有这样的一个提示:

Read the rest of this entry »

Post to Twitter