DNS related debugging

本文介绍如何检查DNS服务器是否运行及监听的IP地址和端口,适用于root用户。同时提供了降低DNS缓存影响的方法,如设置低TTL值,并介绍了如何调整DNS服务器的日志级别和使用rndc命令获取更多信息。

DNS related debugging :

  1. How do I know that the DNS server is running
    1. ps ef | grep named (named is the daemon that runs)
    2. As root : netstatapn | grep named (it will tell you what IP addresses and port are opened by named)
  2. Developers who are making frequent changes to the dns data usually want all their queries to reach the dns server (and not be taken from the cache). Please note you should NOT be doing this in the normal case.
    1. Set the TTL to a small value (10 sec) --- $TTL 10 in the named.3gppnetwork.org
  3. Debugging the dns server
    1. currently the debug logs are present in /var/cahed/bind/log.msgs .
    2. You can change the severity of the logging from “severity info” to “severity debug 3” in named.conf .
    3. You can change the severity to “severity dynamic” and then use the rndc commands to try and dump more information: cd /etc/bind; rndc -V -s localhost -k ./rndc.key trace 5; rndc -V -s localhost -k ./rndc.key querylog
    4. Currently there dns server does not log when it returns a failure (because it has not data) -- https://lists.isc.org/pipermail/bind-users/2009-January/074973.html
    5. The best way is to run a wireshark on eth1 (where the dns server is running). You can even have a capture filter with just dns “port 53”mme
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值