• 自建mail服务器之一:dns解析


    这个其实不是必须的

    1,maradns服务器安装和设置

    mararc文件

    # Win32-specific MaraRC file; this makes a basic recursive DNS
    # server.
    
    hide_disclaimer = "YES"
    ipv4_bind_addresses = "127.0.0.1,192.168.2.100"
    recursive_acl = "127.0.0.1/8"
    timestamp_type = 2
    
    csv2 = {}
    csv2["local.com."] = "db.lan.txt"
    
    # This is insecure until the secret.txt file is edited
    random_seed_file = "secret.txt"
    
    upstream_servers = {}
    upstream_servers["."] = "203.185.0.35,203.185.0.36"

    db.lan.txt

    test.%       192.168.2.100 ~
    %	MX	10 mail.% ~
    mail.%	192.168.2.100 ~
    

      

    2,配置系统dns服务器为127.0.0.1

     3,测试

    C:Userscutepig>e:UserscutepigDownloadsmaradns-2-0-13-win32maradns-2-0-13-win32askmara.exe Amail.local.com.
    # Querying the server with the IP 127.0.0.1
    # Question: Amail.local.com.
    mail.local.com. +86400 a 192.168.2.100
    # NS replies:
    #local.com. +86400 ns synth-ip-c0a80264.local.com.
    # AR replies:
    #synth-ip-c0a80264.local.com. +86400 a 192.168.2.100

    C:Userscutepig>nslookup test.local.com
    Server: localhost
    Address: 127.0.0.1

    Name: test.local.com
    Address: 192.168.2.100


    C:Userscutepig>
    C:Userscutepig>nslookup mail.local.com
    Server: localhost
    Address: 127.0.0.1

    Name: mail.local.com
    Address: 192.168.2.100


    C:Userscutepig>nslookup -type=MX local.com
    Server: localhost
    Address: 127.0.0.1

    local.com MX preference = 10, mail exchanger = mail.local.com
    local.com nameserver = synth-ip-c0a80264.local.com
    mail.local.com internet address = 192.168.2.100
    synth-ip-c0a80264.local.com internet address = 192.168.2.100

  • 相关阅读:
    mui---子页面主动调用父页面的方法
    宝塔使用FTP的问题
    css---颜色过渡渐变
    mui---开发直播APP
    mui---计算缓存大小及清除缓存
    mui---自定义页面打开的方向
    mui---取消掉默认加载框
    mui+回复弹出软键盘
    还不错的MUI技术文档
    mui---父页面跳子页面刷新子页面
  • 原文地址:https://www.cnblogs.com/cutepig/p/5906003.html
Copyright © 2020-2023  润新知