【问题标题】:Test my Ubuntu DNS测试我的 Ubuntu DNS
【发布时间】:2017-05-22 10:04:35
【问题描述】:

我已经在 Ubuntu 16.04 上安装并设置了我自己的 DNS。

我这样做了:

 /etc/bind/named.conf.options

将文件内容更改为:

options {
        directory "/var/cache/bind";
        allow-query { any; };
        allow-recursion { 63.142.252.119; 127.0.0.1; };
        dnssec-validation auto;
        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
        forwarders {
                8.8.8.8;
                8.8.4.4;
        };
};

logging {
        channel default {
                file "/var/log/named/named.log" versions 3 size 16m;
        };
        category default { default; };
};

还有: /etc/bind/named.conf.local

让它看起来像:

zone "mydomain.com" {
        type master;
        file "/etc/bind/zones/mydomain.com.db";
        };

接下来,打开(创建)区域文件:

/etc/bind/zones/mydomain.com.db

并将域数据放在那里:

$TTL 600
mydomain.com.      IN      SOA     ns1.mydomain.com. admin.mydomain.com. (
                                                        2006081401
                                                        28800
                                                        3600
                                                        604800
                                                        38400
)

mydomain.com.      IN      NS              ns1.mydomain.com.
mydomain.com.      IN      NS              ns2.mydomain.com.

mydomain.com.      IN      MX     10       mta.mydomain.com.

mydomain.com.       IN      A       63.142.252.119
*                   IN      A       63.142.252.119

ns1.mydomain.com.              IN      A       63.142.252.119
ns2.mydomain.com.              IN      A       63.142.252.119

www              IN      A       63.142.252.119
mta              IN      A       63.142.252.119

我确实重新启动了 bind9,现在尝试 ping 我的 ns1.mydoman.com,我收到了 'ping: unknown host ns1.mydomain.com'

如果一切正常,我不应该对结果进行一些定期回复吗? {mydomain.com 尚未在我的域提供商上配置}

【问题讨论】:

    标签: ubuntu dns resolve


    【解决方案1】:

    最后,一切正常,只是我所在国家的域名注册商需要一些时间来进行域名传播。

    【讨论】:

      猜你喜欢
      • 2010-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多