Home > Uncategorized > 如何在墙内做一个干净的域名解析服务器?

如何在墙内做一个干净的域名解析服务器?

配置一个转发型的域名解析服务器,通过VPN转发到国外的开放解析服务器,比如google的8.8.8.8。

以BIND为例,简单的配置如下:

编辑/etc/named.conf

options {
        directory "/var/named";
        allow-recursion { any; };
        allow-query { any; };
        forwarders {8.8.8.8;8.8.4.4;};
};

然后配置你的到国外的VPN就可以了
route add host 8.8.8.8 <ip address of your vpn gateway>
Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: