AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1008267
Accepted
Lasse Michael Mølgaard
Lasse Michael Mølgaard
Asked: 2020-03-25 17:37:14 +0800 CST2020-03-25 17:37:14 +0800 CST 2020-03-25 17:37:14 +0800 CST

无法启动带有 Bind9 和 BIND_DLZ 的动态 DNS?

  • 772

我有一个使用 BIND_DLZ 作为后端运行 Samba 作为 Active Directory 域控制器的设备。

最重要的是,我正在运行一个辅助设备,该设备也配置为 Active Directory 域控制器,也使用 BIND_DLZ 作为后端以实现冗余目的。

IP 地址由 ISC DHCP 服务器分配,该服务器能够使用加密密钥 (TSIG) 更新 DNS 资源记录。

无论如何:关于我的问题。

这是我目前的设置

命名.conf.options:

options 
{
     directory "/var/cache/bind";

     forwarders {
            2001:4860:4860::8888;
            2001:4860:4860::8844;
            8.8.8.8;
            8.8.4.4;
     };

     auth-nxdomain no;    # conform to RFC1035
     listen-on-v6 { any; };

     listen-on port 53 { 192.168.1.240; };
     listen-on port 5353 { 127.0.0.1; }; <-- Used for Netflix IPv6 filter only.

     tkey-gssapi-keytab "/var/lib/samba/bind-dns/dns.keytab";
     minimal-responses yes;
     recursion yes;
};

acl "home-net"
{
    127.0.0.1;
    192.168.1.0/24;
    2001:db8:cafe:beef::/56; # <-- I am using a IPv6 range from Tunnelbroker in real life.
};

view "normal"
{
    include "/etc/bind/named.conf.default-zones";
    include "/etc/bind/named.conf.internal";

    # Netflix really dislike Tunnelbroker IPv6, so I am dropping any Netflix AAAA ressources records.
    include "/etc/bind/netflix-ipv6-blackhole.conf";  

    match-clients
    {
        home-net; # <-- Only respond to queries originating from my own network.
    };

    dnssec-enable yes;
    dnssec-validation auto;

    allow-query { any; };
    allow-query-cache { home-net; };
    allow-recursion { home-net; };

    forwarders {
      8.8.8.8;
      8.8.4.4;
      2001:4860:4860::8888;
      2001:4860:4860::8844;
   };
};

命名的.conf.internal:

zone "1.168.192.in-addr.arpa"
{
    type master;
    file "/etc/bind/db.192.168.1.rev";
    notify yes;

    allow-query { any; };
    allow-transfer { xfer; };

    # If allow-update is enabled instead of the include named.conf.update line, 
    # then Dynamic DNS works fine due to ISC DHCP can update the ressource records. 
    #
    # Sadly you can't have both lines enabled. It is either / or.

    // allow-update { key ddns-key; };

    include "/var/lib/samba/bind-dns/named.conf.update"; # <-- Having issues with THIS line only.
};

include "/var/lib/samba/bind-dns/named.conf";

/var/lib/samba/bind-dns/named.conf:

dlz "AD DNS Zone" {
    # For BIND 9.11.x
    database "dlopen /usr/lib/arm-linux-gnueabihf/samba/bind9/dlz_bind9_11.so";
};

/var/lib/samba/bind-dns/named.conf.update:

/* this file is auto-generated - do not edit */
update-policy {
        grant EXAMPLE.COM ms-self * A AAAA;
        grant [email protected] wildcard * A AAAA SRV CNAME;

        # Main Active Directory Domain Controller
        grant [email protected] wildcard * A AAAA SRV CNAME;

        # Backup Active Directory Domain Controller
        grant [email protected] wildcard * A AAAA SRV CNAME;
};

如果我尝试使用此配置开始绑定,我会得到一个我无法弄清楚的相当奇怪的错误:

/var/lib/samba/bind-dns/named.conf.update:3: name field not set to placeholder value '.'

有没有人可以告诉我named.conf.update有什么问题?

active-directory samba bind dynamic-dns
  • 1 1 个回答
  • 1500 Views

1 个回答

  • Voted
  1. Best Answer
    Rowland Penny
    2020-03-26T07:39:47+08:002020-03-26T07:39:47+08:00

    好的,您有两个使用 Bind9 作为 dns 服务器的 Samba AD DC,并且您遇到了 dns 问题,我想知道这是否与您不正确的绑定文件有关?

    一个主要问题是您在平面文件中有反向区域,这是不允许的,您需要创建它 AD,您可以使用 samba-tool 来执行此操作。您也不能使用“视图”

    试试这些 bind9 conf 文件:

    /etc/bind/named.conf

    包括“/etc/bind/named.conf.options”;包括“/etc/bind/named.conf.local”;包括“/etc/bind/named.conf.default-zones”;

    /etc/bind/named.conf.options

    选项 {

    directory "/var/cache/bind";
    notify no;
    empty-zones-enable no;
    allow-query { 127.0.0.1; 192.168.1.0/24; };
    allow-recursion { 192.168.1.0/24; 127.0.0.1/32; };
    forwarders {
            2001:4860:4860::8888;
            2001:4860:4860::8844;
            8.8.8.8;
            8.8.4.4;
    };
    allow-transfer { none; };
    dnssec-validation no;
    dnssec-enable no;
    dnssec-lookaside no;
    listen-on-v6 { any; };
    listen-on port 53 { 192.168.1.240; };
    listen-on port 53 { 192.168.1.240; 127.0.0.1; };
    listen-on port 5353 { 127.0.0.1; }; <-- Used for Netflix IPv6 filter only.
    
    tkey-gssapi-keytab "/var/lib/samba/bind-dns/dns.keytab";
    minimal-responses yes;
    

    };

    /etc/bind/named.conf.local

    包括“/var/lib/samba/bind-dns/named.conf”;

    // Netflix 真的不喜欢 Tunnelbroker IPv6,所以我要删除所有 Netflix AAAA 资源记录。

    包括“/etc/bind/netflix-ipv6-blackhole.conf”;

    如果你备份了 /var/lib/samba/bind-dns/named.conf.update 然后从备份中恢复。如果不是,则将其更改为:

    /* 这个文件是自动生成的 - 不要编辑 */ update-policy {

    grant EXAMPLE.COM ms-self * A AAAA;
    grant [email protected] wildcard * A AAAA SRV CNAME;
    grant [email protected] wildcard * A AAAA SRV CNAME;
    grant [email protected] wildcard * A AAAA SRV CNAME;
    

    };

    • 0

相关问题

  • 如果以域用户身份远程登录,PC 速度极慢

  • 如何在 Windows 2003 的 ou 级别应用策略

  • 允许用户更改其 Active Directory 密码的 Web 界面

  • MOSS 2007 无法使用 ActiveDirectoryMembershipProvider 配置表单身份验证

  • 通过 VPN 更改 Active Directory 密码

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve