在RedHatAs3.0上搞辅助DNS的困惑
主DNS地址:192.168.176.11[pridns.mydomain.com]辅助DNS地址:192.168.176.33[ns3.mydomain.com]
如果直接把主DNS[192.168.176.11]的/etc/named.conf拷贝过来,启动DNS服务没问题,
[root@ns3 root]#sftp root@192.168.176.11:/etc/named.conf /etc/named.conf
...........
[root@ns3 root]# netstat -tal
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.176.33:domain *:* LISTEN
tcp 0 0 localhost.locald:domain *:* LISTEN
tcp 0 0 localhost.localdom:rndc *:* LISTEN
tcp 0 0 localhost.localdo:32772 localhost.localdom:rndc TIME_WAIT
一旦改成
.......
zone "mydomain.com" IN {
type slave;
masters { 192.168.176.11;};
file "named.mydomain.com";
allow-update { none; };
};
.............
就启动不了DNS服务,
[root@ns3 root]# /etc/init.d/named restart
Stopping named: rndc: connect failed: connection refused
[FAILED]
Starting named: [ OK ]
[root@ns3 root]# netstat -tal
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:ssh *:* LISTEN
这到底是怎么一回事呢?
主DNS[192.168.176.11]的配置/var/named.mydomain.com
# more /var/named/named.mydomain.com
$TTL 86400
@ IN SOA pridns.mydomain.com. root.pridns.mydomain.com. (
2004051200 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS pridns.mydomain.com.
IN NS ns3.mydomain.com.
pridns.mydomain.com. IN A 192.168.176.11
ns3.mydomain.com. IN A 192.168.176.33