用pdnsd 做局域网域名劫持

星期三, 十月 8th, 2008 Posted in 服务器应用 | No Comments »

在之前的文章里提到过网吧里用了pdnsd 做了域名代理,其实pdnsd 除了做代理加快解析之外,还可以劫持域名,今天研究了一下劫持的方法。 a.最简单办法直接用pdnsd-ctl 插入一条 A 记录,举例: pdnsd-ctl add a 127.0.0.1 www.linuxbyte.org. 900 (900 为TTL 值) Read more..