TODO s4:setup/dns_update_list: register NS records
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Apr 2014 16:54:13 +0000 (18:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 4 Mar 2015 06:48:38 +0000 (07:48 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831

TODO: this is not allowed against windows, we should use rpc
to create NS records.

RPC ${ZONE} ${TYPE} ${NAME} ${TARGET}

SERVER = NS server von ZONE
=> samba-tool dns add ${SERVER} ${ZONE} ${NAME}. ${TYPE} ${TARGET}

${IF_RWDNS_DOMAIN}RPC ${DNSDOMAIN} NS ${DNSDOMAIN} ${HOSTNAME}
=> samba-tool dns add ${SERVER} ${DNSDOMAIN} ${DNSDOMAIN}. NS ${HOSTNAME}
${IF_RWDNS_FOREST}RPC _msdcs.${DNSFOREST} NS _msdcs.${DNSFOREST} ${HOSTNAME}
=> samba-tool dns add ${SERVER} _msdcs.${DNSFOREST} _msdcs.${DNSFOREST}. NS ${HOSTNAME}
${IF_RWDNS_FOREST}RPC ${DNSFOREST} NS _msdcs.${DNSFOREST} ${HOSTNAME}
=> samba-tool dns add ${SERVER} ${DNSFOREST} _msdcs.${DNSFOREST}. NS ${HOSTNAME}

source4/setup/dns_update_list

index deac459d7aa79ed24f6ef66e172ed100ae2a1b97..bbc387a9e775b52e88e9c755e00beb5ef4ea685c 100644 (file)
@@ -34,6 +34,7 @@ ${IF_GC}SRV            _gc._tcp.${SITE}._sites.${DNSFOREST}                  ${H
 ${IF_GC}SRV            _ldap._tcp.${SITE}._sites.gc._msdcs.${DNSFOREST}      ${HOSTNAME} 3268
 
 # RW DNS servers
+${IF_RWDNS_DOMAIN}NS   ${DNSDOMAIN}                                          ${HOSTNAME}
 ${IF_RWDNS_DOMAIN}A    DomainDnsZones.${DNSDOMAIN}                           $IP
 ${IF_RWDNS_DOMAIN}AAAA DomainDnsZones.${DNSDOMAIN}                           $IP
 ${IF_RWDNS_DOMAIN}SRV  _ldap._tcp.DomainDnsZones.${DNSDOMAIN}                ${HOSTNAME} 389
@@ -41,6 +42,7 @@ ${IF_RWDNS_DOMAIN}SRV  _ldap._tcp.DomainDnsZones.${DNSDOMAIN}                ${H
 ${IF_DNS_DOMAIN}SRV    _ldap._tcp.${SITE}._sites.DomainDnsZones.${DNSDOMAIN} ${HOSTNAME} 389
 
 # RW DNS servers
+${IF_RWDNS_FOREST}NS   ${DNSFOREST}                                          ${HOSTNAME}
 ${IF_RWDNS_FOREST}A    ForestDnsZones.${DNSFOREST}                           $IP
 ${IF_RWDNS_FOREST}AAAA ForestDnsZones.${DNSFOREST}                           $IP
 ${IF_RWDNS_FOREST}SRV  _ldap._tcp.ForestDnsZones.${DNSFOREST}                ${HOSTNAME} 389