转移DNS服务器

本来的服务器是安装在一个REDHAT LINUX 9的服务器上,现在需要转移到另外debian服务器上。

1、首先在debian服务器上安装bind9:

aptitude install bind9

2、拷贝旧服务器上的dns配置:

scp user@redhat:/var/named/db.westgis.ac.cn /etc/bind/
scp user@redhat:/var/named/db.210.77.68 /etc/bind/

3、设置新服务器

nano /etc/bind/name.conf.local

添加如下内容:

zone “westgis.ac.cn” {
type master;
file “/etc/bind/db.westgis.ac.cn”;
};
zone “68.77.210.in-addr.arpa” {
type master;
file “db.210.77.68″;
};

4、IP地址转移
停掉旧服务器上的IP,在新服务器上添加IP。
这一点,还是DEBIAN的服务器要好用的多,直接修改/etc/network/interface文件的内容就可以了,而redhat上感觉就复杂一些。
或许,是因为我DEBIAN用得比REDHAT要好?
5、启用新DNS

/etc/init.d/bind9 restart

This entry was posted in Linux and tagged , , , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string jasIBO to the field below:

以新浪微博帐号登录