postfix邮件系统 (9) dns安装配置
为了把这台机子配置成真正意义上的mail服务器,我决定把hostname改成mail.example.orgvim /etc/hosts# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.87.128 mail.example.org mailvim /etc/sysconf/network NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=mail.example.org 1,安装软件包 # yum install -y bind-devel bind-chroot bindcaching-nameserver 由于dns安装在chroot模式下,所以他的家目录在/var/named/chroot/ # cd /var/named/chroot/
# ls
devetcvar 2,dns的配置 # cp /var/named/chroot/etc/named.caching-nameserver.conf/var/named/chroot/etc/named.conf # vim/var/named/chroot/etc/named.rfc1912.zones
zone "example.org" IN {
type master;
file "example.org";
};
zone "87.168.192.in-addr.arpa" IN {
type master;
file "87.168.192.in-addr.arpa";
allow-update { none; };
};
# vim/var/named/chroot/var/named/example.org
$TTL 86400
@ IN SOA example.org.root.localhost.(
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS mail.example.org.
mail IN A 192.168.87.128
example.org. IN MX10 mail.example.org.
# vim/var/named/chroot/var/named/87.168.192.in-addr.arpa
$TTL 86400
@ IN SOA mail.example.orgroot.localhost.(
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS mail.example.org.
128 IN PTR mail.example.org.
# nslookup -type=MXexample.org
Server: 192.168.87.128
Address: 192.168.87.128#53
example.org mail exchanger = 10 mail.example.org.
配置成功!!!
找到好贴不容易,我顶你了,谢了 自从我变成了狗屎,就再也没有人踩在我头上了。 如果没有毛片,中国的性教育简直就是一片空白! 生,容易。活,容易。生活,不容易。 人生重要的不是所站的位置,而是所朝的方向! 为中华而努力读书!一包中华好多钱啊~~~
页:
[1]