# vi /etc/named.conf
#编辑bind配置文件
zone "orange.com" IN {
type master;
file "master.orange.com";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "in-addr.orange.com";
allow-update { none; };
};
添加或更改为以上俩句,分别为orange.com 的正反向解析域,其中file后为DNS数据库文件名.更改完后存盘退出
#vi master.orange.com
#编辑正向解析域数据库文件,A记录等就是在此处添加
$TTL 86400
@ IN SOA apple.orange.com. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS apple.orange.com.
apple.orange.com. IN A 192.168.1.201
www IN A 192.168.1.201
ftp IN A 192.168.1.91
vhost1 IN A 192.168.1.201
vhost2 IN CNAME www