主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
[email protected]:/etc/named.conf /etc/named.
主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
[email protected]:/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