windows 10 home版下建立DNS服务(二)


比第一篇功能应该更强一些 。用 Unbound windows版

1、下载
unbound_setup_版本.exe那个,装起来服务啥的自动建好,比较方便。

2、修改service.conf,来个最简单的配置

server:
verbosity: 0
directory: "%EXECUTABLE%"
interface: ::0
interface: 0.0.0.0
port: 53
do-ip6: yes
do-ip4: yes
module-config: "dns64 iterator" #自带dns64多好
dns64-prefix: AE86:FF::0/96
include: "lan-zones.conf"

remote-control:
# If you want to use unbound-control.exe from the command line, use
#control-enable: yes
#control-interface: 127.0.0.1
#control-use-cert: no

forward-zone:
name: "cn."
forward-addr: 国内dns #上级DNS,也可以是路由器dnsip

forward-zone:
name: "."
forward-addr: 192.168.x.1 #上级DNS,也可以是路由器dnsip
forward-addr: 其它上级DNS@端口

3、建立lan-zones.conf,把xboxone下载合适的ip放在这,自己找找好用的改一下。

local-zone: "assets1.xboxlive.cn." redirect
local-data: "assets1.xboxlive.cn. 60 IN A 111.6.166.131"
local-data: "assets1.xboxlive.cn. 60 IN A 111.6.166.129"
local-data: "assets1.xboxlive.cn. 60 IN A 111.7.180.1"
local-data: "assets1.xboxlive.cn. 60 IN A 111.6.166.130"
local-data: "assets1.xboxlive.cn. 60 IN A 111.6.166.133"
local-data: "assets1.xboxlive.cn. 60 IN A 111.6.166.132"
local-data: "assets1.xboxlive.cn. 60 IN A 111.6.188.129"


#也可以有这功能
local-zone: "广告地址" redirect
local-data: "广告地址 A 0.0.0.0"
#可能也能这样
local-zone: "广告地址 " static

4、在windows服务里启动Unbound DNS就行了。xboxone也可以在dns设置那里填入这台机器的ip,下载应该很飞快。

发表评论