[iyunv@localhost root]# vi /etc/named.conf
1、
root@localhost root]# vi /etc/named.conf
添加下面的信息
zone "gr.org" IN {
type master;
file "gr.org.db";
allow-update { none;};
};
zone "233.168.192.in-addr.arpa" IN{
type master;
file "233.168.192.db";
};
2、
[iyunv@localhost root]# cat > /var/named/gr.org.db
$TTL 86400
@ IN SOA ns.gr.org. root.gr.org. (
20150218 6H 30M 1W 15M)
@ IN NS ns.gr.org.
@ IN MX 10 mail.gr.org.
bbs IN CNAME www.gr.org.
ns IN A 192.168.233.2
www IN A 192.168.233.2
mail IN A 192.168.233.3
root@localhost named]# vi /etc/mail/local-host-names
gr.org
mail.gr.org
(五)建立用户
添加用户 stu,wuji,huji
[iyunv@localhost named]# useradd huji -s /sbin/nologin
[iyunv@localhost named]# passwd huji
Changing password for user huji.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
[iyunv@localhost named]# useradd wuji -s /sbin/nologin
[iyunv@localhost named]# passwd wuji
Changing password for user stu1.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
[iyunv@localhost named]# useradd stu -s /sbin/nologin
[iyunv@localhost named]# passwd stu
Changing password for user stu1.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.