ralph strebbing
2021-Jan-29 20:16 UTC
[Samba] Dynamic Updates to Bind DLZ through DHCP have repeated errors in syslog
On Fri, Jan 29, 2021 at 3:08 PM ralph strebbing <blackbirdralph at gmail.com> wrote:> > On Fri, Jan 29, 2021 at 2:22 PM Rowland penny via samba > <samba at lists.samba.org> wrote: > > > > > Have you created the reversezone(s) in AD ? > > > Only if I'm manually creating the DNS Entry (e.g pbx.domain.com > pointing to an IP of another static device pbx1). Aside from that, I > thought that the script was creating them on the 'add' function. >Wait. I think I may have found the problem. Do I need to modify the script to include each of our subnets in use? e.g we use 10.0.0.0/16, 192.168.x, .y, .z,etc. due to existing subnets from other locations we've acquired, whereas your example on the wiki is only using 192.168.0.0/24. Snippet from the script that I would need to modify for our use case: case "$numwords" in 1) # single ip rev zone '192' ZoneIP=$(echo "${IP}" | awk -F '.' '{print $1}') RZIP=$(echo "${rzoneip}" | awk -F '.' '{print $3}') IP2add=$(echo "${IP}" | awk -F '.' '{print $4"."$3"."$2}') ;; 2) # double ip rev zone '168.192' ZoneIP=$(echo "${IP}" | awk -F '.' '{print $1"."$2}') RZIP=$(echo "${rzoneip}" | awk -F '.' '{print $2"."$1}') IP2add=$(echo "${IP}" | awk -F '.' '{print $4"."$3}') ;; 3) # triple ip rev zone '0.168.192' ZoneIP=$(echo "${IP}" | awk -F '.' '{print $1"."$2"."$3}') RZIP=$(echo "${rzoneip}" | awk -F '.' '{print $3"."$2"."$1}') IP2add=$(echo "${IP}" | awk -F '.' '{print $4}') ;; *) # should never happen exit 1 ;; esac Thanks, Ralph
Rowland penny
2021-Jan-29 20:22 UTC
[Samba] Dynamic Updates to Bind DLZ through DHCP have repeated errors in syslog
On 29/01/2021 20:16, ralph strebbing wrote:> On Fri, Jan 29, 2021 at 3:08 PM ralph strebbing > <blackbirdralph at gmail.com> wrote: >> On Fri, Jan 29, 2021 at 2:22 PM Rowland penny via samba >> <samba at lists.samba.org> wrote: >> >>> Have you created the reversezone(s) in AD ? >>> >> Only if I'm manually creating the DNS Entry (e.g pbx.domain.com >> pointing to an IP of another static device pbx1). Aside from that, I >> thought that the script was creating them on the 'add' function. >> > Wait. I think I may have found the problem. Do I need to modify the > script to include each of our subnets in use? e.g we use 10.0.0.0/16, > 192.168.x, .y, .z,etc. due to existing subnets from other locations > we've acquired, whereas your example on the wiki is only using > 192.168.0.0/24. Snippet from the script that I would need to modify > for our use case: > case "$numwords" in > 1) # single ip rev zone '192' > ZoneIP=$(echo "${IP}" | awk -F '.' '{print $1}') > RZIP=$(echo "${rzoneip}" | awk -F '.' '{print $3}') > IP2add=$(echo "${IP}" | awk -F '.' '{print $4"."$3"."$2}') > ;; > 2) # double ip rev zone '168.192' > ZoneIP=$(echo "${IP}" | awk -F '.' '{print $1"."$2}') > RZIP=$(echo "${rzoneip}" | awk -F '.' '{print $2"."$1}') > IP2add=$(echo "${IP}" | awk -F '.' '{print $4"."$3}') > ;; > 3) # triple ip rev zone '0.168.192' > ZoneIP=$(echo "${IP}" | awk -F '.' '{print $1"."$2"."$3}') > RZIP=$(echo "${rzoneip}" | awk -F '.' '{print $3"."$2"."$1}') > IP2add=$(echo "${IP}" | awk -F '.' '{print $4}') > ;; > *) # should never happen > exit 1 > ;; > esac > > Thanks, > RalphNo, that is meant to set up the reversezone record to add, for each reverse zone (which it seems that you do not have). Rowland