DynDNS Update - IPv6 Problem
felix.b.mueller at gmx.net
felix.b.mueller at gmx.net
Mon Apr 8 16:03:35 UTC 2024
Dear Samba team,
I have a little remark regarding the script dhcp-dyndns.sh which is
published here:
https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records
Having at least one IPv6 Reverse zone, case 4 (# should never happen) in
rev_zone_info() will be selected. Hence, the PRT record will not be updated.
My solution is sort out the IPv6 reverse zones by Changing the line below
# get existing reverse zones (if any)
ReverseZones_unfiltered=$($SAMBATOOL dns zonelist "${Server}" "$KTYPE"
--reverse | grep 'pszZoneName' | awk '{print $NF}')
ReverseZones=
for revzone in $ReverseZones_unfiltered
do
# Check if the string contains "ip6"
if [[ $revzone != *ip6* ]]; then
# Append the string to the filtered list variable
ReverseZones+="$revzone"$'\n'
fi
done
Is there a better solution or way how to handle IPv6 and updating the DNS?
Best regards!
Felix Müller
More information about the samba-technical
mailing list