其实我试图为我的本地networking创build一个DNSparsing器,这样做,我select使用unbound,所以我安装在一个Arch Linux服务器,它的工作,但只为本地计算机(127.0.0.1) ,而不是networking(我想打开它的IP范围192.168.0.1-192.168.0.30,我认为对应于192.168.0.0/27),但我找不到我的configuration文件有什么问题,当我在本地机器上执行“dig @ 127.0.0.1 example.com”或“dig @ 192.168.0.2 example.com”时,parsing器只是做出响应,而不是当我在networking的其他计算机上执行时(这是192.168.0.4,如果你想知道),我从没有绑定的错误没有得到任何错误,它似乎没有得到来自本地networking的一部分的计算机的请求。
这是我使用的configuration文件:
server: # Maximum verbosity verbosity: 5 # Answer queries from # The local machine interface: 127.0.0.1 interface: ::1 # The local machine on the network interface: 192.168.0.2 # Default DNS port port: 53 # Save in cache for an hour to a day cache-min-ttl: 3600 cache-max-ttl: 86400 # Enable IPv4, IPv6, UDP and TCP requests do-ip4: yes do-ip6: yes do-udp: yes do-tcp: yes # Launch in a deamon (temporarily disabled) # do-daemonize: yes # Deny all the Internet (temporarily refuse) access-control: 0.0.0.0/0 refuse access-control: ::0/0 refuse # Allow localhost access-control: 127.0.0.1 allow access-control: ::1 allow # Allow network from 192.168.0.0 to 192.168.0.30 access-control: 192.168.0.0/27 allow access-control: 2001:db8::/108 allow # List of DNS root zone (automatically downloaded every 5 days with a CRON) root-hints: "named.cache" # Hide identity and version hide-identity: yes hide-version: yes # Localhost private-address: 127.0.0.1 private-address: ::1 # Network private-address: 192.168.0.0/27 private-address: 2001:db8::/108 # Prevent from resolving network IPs do-not-query-address: 192.168.0.0/27 do-not-query-localhost: yes # Prefetch old-cached DNS responses prefetch: yes
预先感谢您的回复。
检查是否有防火墙运行。 这将允许本地答案,但入站查询将被丢弃。