pdnsd 在 12.04LTS 中精确穿山甲

pdnsd 在 12.04LTS 中精确穿山甲

如何安装和配置 pdnsd 以使其工作

我尝试过自行配置,但无法使其工作,现在我已将其删除,并在此寻求帮助

我还弄乱了 /etc/pdnsd.conf 和 usr/share/default/pdnsd 文件,请尽快一步一步地提供帮助

每当我尝试重新启动 pdnsd 时都会出现此错误

root@Citilink:/home/citilink# service pdnsd restart * Stopping pdnsd ...done. * Starting pdnsd Error: unknown option: no

这是我的 /etc/pdnsd.conf

// Read the pdnsd.conf(5) manpage for an explanation of the options. /* Note: this file is overriden by automatic config files when /etc/default/pdnsd AUTO_MODE is set and that /usr/share/pdnsd/pdnsd-$AUTO_MODE.conf exists global { perm_cache=;1024000 server_ip = 127.0.0.1; // Use eth1 here if you want to allow other // machines on your network to query pdnsd. status_ctl = on; paranoid=on; query_method=tcp_udp; // pdnsd must be compiled with tcp // query support for this to work. min_ttl=15m; // Retain cached entries at least 15 minutes. max_ttl=1w; // One week. timeout=10; // Global timeout option (10 seconds). // Don't enable if you don't recurse yourself, can lead to problems // delegation_only="com","net"; } server { label= "citilink"; ip=8.8.8.8,4.2.2.2;10.0.0.1 proxy_only=on; timeout=10; } server { ip = 10.0.0.1; Put your ISP's DNS-server address here. interface=eth1; The interface connected to the network. } with status_ctl=on and resolvconf installed, this will work out from the box this is the recommended setup for mobile machines */ server { label="resolvconf"; } This section is meant for resolving from root servers. server { label = "root-servers"; root_server=on; ip = 198.41.0.4 , 192.228.79.201 , 192.33.4.12 , 128.8.10.90 , 192.203.230.10 , 192.5.5.241 , 192.112.36.4 , 128.63.2.53 , 192.36.148.17 , 192.58.128.30 , 193.0.14.129 , 198.32.64.12 , 202.12.27.33 ; timeout = 5; uptest = query; interval = 30m; // Test every half hour. ping_timeout = 300; // 30 seconds. purge_cache = off; exclude = .localdomain; policy = included; preset = off; } owner=localhost; // serve_aliases=on; file="/etc/hosts"; } rr { name=localhost; reverse=on; a=127.0.0.1; owner=localhost; soa=localhost,root.localhost,42,86400,900,86400,86400; } /* neg { name=doubleclick.net; types=domain; // This will also block xxx.doubleclick.net, etc. } */ /* neg { name=bad.server.com; // Badly behaved server you don't want to connect to. types=A,AAAA; } */ /* vim:set ft=c: */ 102,0-1 Bot

答案1

要纠正错误,请在终端窗口中执行以下命令。

sudo apt-get purge pdnsd

只需安装 pdnsd 包就足以使 pdnsd 作为缓存转发名称服务器工作。

sudo apt-get install pdnsd

如果您有更具体的需求,请提出更具体的问题。

相关内容