1、安装BING软件
apt-get bind9
 
2、修改/etc/bind/named.conf文件
   添加
            zone “163.com” in {
                      type master;
                      file “/etc/bind/db.163”;
            };
 
3、创建/etc/bind/db.163文件
   添加
       $TTL 604800
       @     IN    SOA www.163.com.   root.www.163.com.    (
                                      2009070201
                                      604800
                                      86400
                                      2419200
                                      604800     )
       www.163.com.      IN     A       222.169.244.67
 
或者
   添加
            $TTL 604800
            @     IN     SOA  163.com. root.163.com. (
                                       2009070201
                                       604800
                                       86400
                                       2419200
                                       604800     )
                         IN            163.com.
             *       IN     A      222.169.244.67
 
4、修改/etc/hosts文件
   127.0.0.1          localdomain
   127.0.0.1          localhost
 
5、修改/etc/resolv.conf文
   search localhost
       nameserver 本机IP
 
                         IN              www.163.com .