本人于2009年12月迁移至独立BLOG。
1、欢迎光临运维进行时,希望认识更多志向相同的朋友!
2、本站部分资源来源于网络,如有侵权请及时与我联系!
3、强烈建议使用Firefox、Opera、Safari及IE7以上的浏览器访问,以获得最佳浏览质量!
4、请勿发表与中华人民共和国法律、法规相抵触的言论,谢谢合作!
5、本人发布的文章与评论内容仅代表本人观点。
1、欢迎光临运维进行时,希望认识更多志向相同的朋友!
2、本站部分资源来源于网络,如有侵权请及时与我联系!
3、强烈建议使用Firefox、Opera、Safari及IE7以上的浏览器访问,以获得最佳浏览质量!
4、请勿发表与中华人民共和国法律、法规相抵触的言论,谢谢合作!
5、本人发布的文章与评论内容仅代表本人观点。
DNS中MX记录设置
*********************************************************************************
xxx.com. IN MX 10 mx01.xxx.com.
xxx.com. IN MX 20 mx02.xxx.com.
xxx.com. IN TXT "v=spf1 ip4:61.211.120.156 a:xxx.com mx:xxx.com -all"
mx01.xxx.com. IN A 61.211.120.156
mx02.xxx.com. IN A 61.211.120.157
sysmail.xxx.com. IN MX 10 mx03.xxx.com
mx03.xxx.com. IN A 61.211.120.158
sysmail.xxx.com. IN TXT "v=spf1 ip4:61.211.120.158 a:sysmail.xxx.com mx:sysmail.xxx.com -all"
*********************************************************************************
详细说明
如果发邮件到leo.man@xxx.com,dns首先查询MX记录,(xxx.com. IN MX 10 mx01.xxx.com.)
再通过mx01.xxx.com.查询到A记录(mx01.xxx.com. IN A 61.211.120.156)
然后通过SMTP协议发送邮件到61.211.120.156
引用
*********************************************************************************
xxx.com. IN MX 10 mx01.xxx.com.
xxx.com. IN MX 20 mx02.xxx.com.
xxx.com. IN TXT "v=spf1 ip4:61.211.120.156 a:xxx.com mx:xxx.com -all"
mx01.xxx.com. IN A 61.211.120.156
mx02.xxx.com. IN A 61.211.120.157
sysmail.xxx.com. IN MX 10 mx03.xxx.com
mx03.xxx.com. IN A 61.211.120.158
sysmail.xxx.com. IN TXT "v=spf1 ip4:61.211.120.158 a:sysmail.xxx.com mx:sysmail.xxx.com -all"
*********************************************************************************
详细说明
如果发邮件到leo.man@xxx.com,dns首先查询MX记录,(xxx.com. IN MX 10 mx01.xxx.com.)
再通过mx01.xxx.com.查询到A记录(mx01.xxx.com. IN A 61.211.120.156)
然后通过SMTP协议发送邮件到61.211.120.156
一、安装
yum -y install bind
yum -y install bind-chroot
二、生成key
/usr/sbin/dnssec-keygen -a hmac-md5 -b 128 -n user rndc
cat Krndc.+157+13538.*
将生成串更新/etc/rndc.key中secret的值。
三、配制
#/var/named/chroot/etc/named.conf
// Default named.conf generated by install of bind-9.2.4-28.el4
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
Allow-transfer {tran;};
};
acl tran {192.168.0.174;};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone"hk.hn"{
type master;
file "hk.hn";
allow-transfer {192.168.100.174;};
};
include "/etc/rndc.key";
#cd /etc
#ln -s /var/named/chroot/etc/named.conf named.conf
yum -y install bind
yum -y install bind-chroot
二、生成key
/usr/sbin/dnssec-keygen -a hmac-md5 -b 128 -n user rndc
cat Krndc.+157+13538.*
将生成串更新/etc/rndc.key中secret的值。
三、配制
#/var/named/chroot/etc/named.conf
引用
// Default named.conf generated by install of bind-9.2.4-28.el4
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
Allow-transfer {tran;};
};
acl tran {192.168.0.174;};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone"hk.hn"{
type master;
file "hk.hn";
allow-transfer {192.168.100.174;};
};
include "/etc/rndc.key";
#cd /etc
#ln -s /var/named/chroot/etc/named.conf named.conf