未绑定重定向所有流量

时间:2014-09-11 00:21:38

标签: linux dns

我正在尝试使用通配符通过代理重定向某些网站。 有没有办法: (a)通过通配符对所有以.nl结尾的域进行全面重定向 (b)通过代理服务器重定向每个dns请求?

我目前的重定向配置类似于:

local-zone: "co.uk." transparent
# local-zone: "fcod.llnwd.net." transparent
local-zone: "bbc.co.uk." redirect
local-data: "bbc.co.uk. 600 IN A 109.xx.xxx.xxx"
local-zone: "bbc.com." redirect
local-data: "bbc.com. 600 IN A 109.xx.xxx.xxx"
local-zone: "zattoo.com." redirect
local-data: "zattoo.com. 600 IN A 109.xx.xxx.xxx"
local-zone: "lovefilm.com." redirect
local-data: "lovefilm.com. 600 IN A 109.xx.xxx.xxx"
local-zone: "uktv.co.uk." redirect
local-data: "uktv.co.uk. 600 IN A 109.xx.xxx.xxx"
local-zone: "williamhill.com." redirect
local-data: "williamhill.com. 600 IN A 109.xx.xxx.xxx"
local-zone: "eurosport.com." redirect
local-data: "eurosport.com. 600 IN A 109.xx.xxx.xxx"
local-zone: "netflix.com." redirect

1 个答案:

答案 0 :(得分:0)

如果我理解你的问题,那么你可以添加一个

local-data: ".nl. 600 IN A 109.xx.xxx.xxx"
local-zone: ".nl." redirect 

应将层次结构的顶部(或通配符)重定向到“.nl”顶级域。