这是我在网上实验室做的配置操作
/etc/named.conf
建立
zone "domain.example.com" IN {
type master;
file "domain.example.com.zone";
named-checkconf /etc/named.conf ok的
cd /var/named/
vi domain.example.com.zone
$TTL 86400
$ORIGIN domain.example.com.
@ 1D IN SOA rh9.domain.example.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS rh9.domain.example.com.
@ IN A 10.11.11.1
rh9 IN A 10.11.11.1
named-checkzone domain.example.com /var/named/domain.example.com.zone
报错:dns_rdata_fromtext: /var/named/domain.example.com.zone:4: near '3H': not a valid number
zone domain.example.com/IN: loading master file /var/named/domain.example.com.zone: not a valid number
那个 ; serial (d. adams)改啥呀,试了几次不行.