当前位置: 首页 > 工具软件 > pdnsd > 使用案例 >

pdnsd 安装 配置

王经赋
2023-12-01
下载
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文件里面的记录
 类似资料: