pdnsd 安装 配置

下载
yum下不到需要下载源
http://members.home.nl/p.a.rombouts/pdnsd/releases/ 里面下载 最新的rpm
然后安装
国内下载速度缓慢,附件中的 下载之后扩展名请改成 rpm,

传到linux上
yum localinstall pdnsd-1.2.9a-par_sl6.x86_64.rar

chkconfig 里面自动设置成on了
配置事例文件 在/etc/pdnsd.conf.sample
需要改名
cp /etc/pdnsd.conf.sample /etc/pdnsd.conf

配置文件很好理解

global {
perm_cache=10240;
cache_dir="/var/cache/pdnsd";
# pid_file = /var/run/pdnsd.pid;
run_as="pdnsd";
server_ip = 192.168.101.133; #自己的公网ip # machines on your network to query pdnsd.
status_ctl = on;
# paranoid=on; # This option reduces the chance of cache poisoning
# but may make pdnsd less efficient, unfortunately.
query_method=udp_tcp;
min_ttl=15m; # Retain cached entries at least 15 minutes.
max_ttl=1w; # One week.
timeout=10; # Global timeout option (10 seconds).
neg_domain_pol=on;
udpbufsize=1024; # Upper limit on the size of UDP messages.
}
注意中文地方 否则不好使

下面 有默认的 isp模式
opendns模式
根域模式

最下面有个source标签
是/etc/hosts文件
有限查看 hosts文件里面的记录
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值