首页 > 其他 > 详细

Postfix 邮件服务 - DNS服务

时间:2018-04-30 23:18:11      阅读:250      评论:0      收藏:0      [点我收藏+]

DNS 服务 (系统需要配置静态 IP 地址)

yum install bing* -y

一、配置 NDS 域名解析;
  直接添加以下内容:

[root@mail ~]# cat /etc/named.conf 

zone "wangxiaojing.com" IN {
        type master;
        file "wangxiaojing.com.zone";
              allow-update{none;};
};

zone "2.16.172.in-addr.arpa" IN {
        type master;
        file "2.16.172.local";
              allow-update{none;};
};

二、配置正向解析

[root@mail ~]# cat /var/named/wangxiaojing.com.zone 
$TTL 1D
@    IN SOA    @ dns.wangxiaojing.com.  (
                    0    ; serial
                    1D    ; refresh
                    1H    ; retry
                    1W    ; expire
                    3H )    ; minimum
    NS    @
    A    127.0.0.1
    AAAA    ::1
IN       NS      dns.wangxiaojing.com.
        IN       MX   10     dns.wangxiaojing.com.
dns     IN       A           172.16.2.18
mail    IN       CNAME       dns
pop3    IN       CNAME       dns
smtp    IN       CNAME       dns
imap4    IN       CNAME       dns

三、配置反向解析

[root@mail ~]# cat /var/named/2.16.172.local 
$TTL 1D
@    IN SOA    @ dns.wangxiaojing.com. (
                    0    ; serial
                    1D    ; refresh
                    1H    ; retry
                    1W    ; expire
                    3H )    ; minimum
    NS    @
    A    127.0.0.1
    AAAA    ::1
IN   NS  dns.wangxiaojing.com.
18     IN   PTR dns.wangxiaojing.com.

四、启动测试;

chkconfig named on
service named start

五、配置 /etc/resolv.conf 

(bind 重启之后配置会丢失,编辑保存就行)

search wangxiaojing.com
nameserver 172.16.2.18
nameserver 8.8.8.8
nameserver 8.8.4.4

六、检测 NDS 解析:

[root@mail ~]# nslookup -qt=mx mail.wangxiaojing.com
*** Invalid option: qt=mx
Server:        172.16.2.18
Address:    172.16.2.18#53

mail.wangxiaojing.com    canonical name = dns.wangxiaojing.com.
Name:    dns.wangxiaojing.com
Address: 172.16.2.18

 

Postfix 邮件服务 - DNS服务

原文:https://www.cnblogs.com/sharesdk/p/8975029.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!