File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
setup-ubuntu-active-directory Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,6 @@ systemctl restart chrony
160160# 15. Create reverse DNS zone
161161echo " Creating reverse DNS zone..."
162162samba-tool dns zonecreate ${PRIMARY_DC_HOSTNAME} ${PTR_ADDRESS} -Uadministrator%${ADMIN_PASSWORD}
163- samba-tool dns add ${PRIMARY_DC_HOSTNAME} .${REALM} ${PTR_ADDRESS} 220 PTR ${PRIMARY_DC_HOSTNAME} .${REALM} -Uadministrator%${ADMIN_PASSWORD}
163+ samba-tool dns add ${PRIMARY_DC_HOSTNAME} .${REALM} ${PTR_ADDRESS} $( echo ${PRIMARY_DC_IP} | awk --field-separator=. ' { print $4 } ' ) PTR ${PRIMARY_DC_HOSTNAME} .${REALM} -Uadministrator%${ADMIN_PASSWORD}
164164
165165echo " Installation complete. Please review the configuration and reboot the system."
Original file line number Diff line number Diff line change @@ -160,6 +160,6 @@ systemctl restart chrony
160160
161161# 15. Create reverse DNS record
162162echo " Creating reverse DNS record..."
163- samba-tool dns add ${SECONDARY_DC_HOSTNAME} .${REALM} ${PTR_ADDRESS} 220 PTR ${SECONDARY_DC_HOSTNAME} .${REALM} -Uadministrator%${ADMIN_PASSWORD}
163+ samba-tool dns add ${SECONDARY_DC_HOSTNAME} .${REALM} ${PTR_ADDRESS} $( echo ${SECONDARY_DC_IP} | awk --field-separator=. ' { print $4 } ' ) PTR ${SECONDARY_DC_HOSTNAME} .${REALM} -Uadministrator%${ADMIN_PASSWORD}
164164
165165echo " Additional DC setup complete. Please review the configuration and reboot the system."
You can’t perform that action at this time.
0 commit comments