- yast –i bind bind-doc bind-chrootenv
- vi /etc/named.conf
修改71行: notify yes;
於文件末端新增:
zone "31100173.com" in {
allow-transfer { any; };
file "master/31100173.com";
type master;
};
- vi /var/lib/named/master/31100173.com
新增以下內容:### 上面兩步的內容也可以用yast做,會輕鬆許多 ###
$TTL 2d
@ IN SOA server70-1.lxlab.com. root.server70-1.lxlab.com. (
2011101300 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum
31100173.com. IN MX 1 mail.31100173.com.
31100173.com. IN NS server1.31100173.com.
31100173.com. IN NS server2.31100173.com.
server1 IN AAAA fd53:1a82:4e39:0:800:27ff:fea7:bfd0
server2 IN AAAA fd53:1a82:4e39:0:800:27ff:fe3b:5470
www IN CNAME server1
mail IN CNAME server1
ftp IN CNAME server1
- service named restart
- chkconfig named on
Server2:
- yast –i bind bind-doc bind-chrootenv
- scp root@server1:/etc/named.conf /etc/named.conf
- vi /etc/named.conf
做以下修改:
zone "31100173.com" in {
allow-transfer { any; };
masters { fd53:1a82:4e39:0:800:27ff:fea7:bfd0; }; file "slave/31100173.com";
type slave;
- service named restart
- chkconfig named on
Server1:
- service named restart
Server2:
- vi /var/lib/named/slave/31100173.com 查看內容是否正確無誤
沒有留言:
張貼留言