Skip to content

rusingineer/unbound.conf

 
 

Repository files navigation

unbound.conf

unbound.conf

DNSCrypt is a piece of lightweight software that everyone should use to boost online privacy and security. It works by encrypting all DNS traffic between the user and DNS resolver, preventing any spying, spoofing or man-in-the-middle attacks.

Unbound is a validating, recursive, and caching DNS resolver.

NirCmd is a small command-line utility that allows you to do some useful tasks without displaying any user interface.

使用方法

  • 下载 DNSCrypt 32-bitDNSCrypt 64-bitUnboundNirCmd 32-bitNirCmd 64-bit

  • 解压dnscrypt-proxy-win32-full-1.7.0.zipdnscrypt-proxy-win64-full-1.7.0.zipE:\Program Files\DNSCrypt\;解压unbound-1.5.7.zipE:\Program Files\unbound\;解压nircmd.zipnircmd-x64.zipC:\Windows\System32\

  • 下载配置文件并解压到E:\Program Files\unbound\

  • 根据实际情况修改localdns.cmd配置文件中的相关目录

  • 运行localdns.cmd启动DNSCrypt和Unbound

  • 在网络设置里面把DNS服务器设置成127.0.0.1

  • 将localdns.cmd放到C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\目录,开机自动启动

localdns

说明

常用hosts域名配置在unbound.local-zone.hosts.conf;广告域名和恶意软件域名配置在unbound.local-zone.block.conf。配置说明可参考Unbound+DNSCrypt双保险防DNS污染及劫持

国内域名默认由114.114.114.114和223.5.5.5解析,配置在unbound.forward-zone.China.conf;其他域名默认由监听在9999端口的DNSCrypt解析

修改unbound配置文件后,请先检查有没有错误配置,再重启unbound并刷新DNS解析缓存

cd /d "E:\Program Files\unbound\"
unbound-checkconf unbound.conf
unbound-control -c unbound.conf reload
ipconfig /flushdns

unbound-control

致谢

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 100.0%