[Samba] DDNS with Bind

Stefan Kania stefan at kania-online.de
Mon Dec 26 17:24:25 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello,
I try to set up a ADDC with bind9 and dhcp-Server for dynamic
DNS-updates. I followd the wiki:
https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records_wi
th_BIND9

My problem is, that the PTR Record will not be updated, because the
script is using the wrong reverse-zone:
- ---------------------
Dez 26 17:30:05 addc-01 named[512]: client 192.168.56.200#60564/key
dhcpduser\@EXAMPLE.NET: updating zone '168.192.IN-ADDR.ARPA/IN':
update failed: not authoritative for update zone (NOTAUTH)
Dez 26 17:30:05 addc-01 logger[989]: DHCP-DNS Update failed: 02
Dez 26 17:30:05 addc-01 dhcpd[803]: execute:
/etc/dhcp/bin/dhcp-dyndns.sh exit status 512

- ---------------------
The zonename should be "56.168.192.in-addr.arpa" so the "56" is missing.
The forward-zone works.

My reverse-zone is:
- --------------------
root at addc-01:~# samba-tool dns zonelist addc-01
  3 zone(s) found

  pszZoneName                 : 56.168.192.in-addr.arpa
  Flags                       : DNS_RPC_ZONE_DSINTEGRATED
DNS_RPC_ZONE_UPDATE_SECURE
  ZoneType                    : DNS_ZONE_TYPE_PRIMARY
  Version                     : 50
  dwDpFlags                   : DNS_DP_AUTOCREATED
DNS_DP_DOMAIN_DEFAULT DNS_DP_ENLISTED
  pszDpFqdn                   : DomainDnsZones.example.net

- --------------------
My dhcpd.conf is a copy from the wiki with my values:
- -------------------
subnet 192.168.56.0 netmask 255.255.255.0 {
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.56.255;
  option time-offset 0;
  option routers 192.168.56.1;
  option domain-name "example.net";
  option domain-name-servers 192.168.56.200;
  option netbios-name-servers 192.168.56.200;
  option ntp-servers 192.168.0.200;
  pool {
    max-lease-time 1800; # 30 minutes
    range 192.168.56.210 192.168.56.229;
  }
- -------------------
So where do I have to set up the right reverse-zone?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlhhUkkACgkQ2JOGcNAHDTadxACgzCmGBGGGyLye1aGhjlGxxGoD
GXMAn0tI2BOH/6f0p5dPpMWltFOx24l2
=maLP
-----END PGP SIGNATURE-----



More information about the samba mailing list