bind
發表於 : 2008-03-06 16:02:24
http://wiki.ubuntu.org.cn/index.php?tit ... EF.BC.89_2
首先,在主伺服器上,您必須允許域可以傳輸。這個在 /etc/bind/named.conf.local 中域定義的示例如下所示:
[...]
zone "example.com" {
type master;
file "/etc/bind/db.example.com";
allow-transfer {
@ip_slave;
};
};
[...]
在從伺服器上,您還必須象主伺服器上一樣做同樣處理。然後編輯 /etc/bind/named.conf.local 併為域添加下列聲明:
[...]
zone "example.com" {
type slave;
file "/etc/bind/db.example.com";
masters { @ip_master; };
};
[...]
Restart the server, you should see in /var/log/syslog something like:
重啟伺服器,您將在 /var/log/syslog 類似下麵的提示:
syslog.5.gz:May 14 23:33:53 smith named[5064]: zone example.com/IN: transferred serial 2006051401
syslog.5.gz:May 14 23:33:53 smith named[5064]: transfer of 'example.com/IN' from 10.0.0.202#53: end of transfer
首先,在主伺服器上,您必須允許域可以傳輸。這個在 /etc/bind/named.conf.local 中域定義的示例如下所示:
[...]
zone "example.com" {
type master;
file "/etc/bind/db.example.com";
allow-transfer {
@ip_slave;
};
};
[...]
在從伺服器上,您還必須象主伺服器上一樣做同樣處理。然後編輯 /etc/bind/named.conf.local 併為域添加下列聲明:
[...]
zone "example.com" {
type slave;
file "/etc/bind/db.example.com";
masters { @ip_master; };
};
[...]
Restart the server, you should see in /var/log/syslog something like:
重啟伺服器,您將在 /var/log/syslog 類似下麵的提示:
syslog.5.gz:May 14 23:33:53 smith named[5064]: zone example.com/IN: transferred serial 2006051401
syslog.5.gz:May 14 23:33:53 smith named[5064]: transfer of 'example.com/IN' from 10.0.0.202#53: end of transfer