Page 1 of 1

Setting up "view" in BIND named.conf

Posted: 2013/08/28 19:41:48
by hyperclock255
Hi all, newbie here.

I've a CentOS 5 VPS running OpenVPN and nginx webserver. The VPN works fine with all other website, except my own website (which is running on the same server as the OpenVPN). I'm trying to access my website (on the same server) through the VPN. Because, when I access my website, it goes directly to the site without going through OpenVPN.

I asked the same question here (https://forums.openvpn.net/topic13194.html), and one of the forumer answered that the solution is to create a view/ACL on BIND so that when my vpn client asks for the ip of my site, BIND will return the vpn server address instead of its internet ip.

I know that to configure BIND, it has something to do with "/etc/named.conf". But what should I put in the configuration file? Thanks in advance