diff options
Diffstat (limited to 'update-ddns.in')
-rw-r--r-- | update-ddns.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/update-ddns.in b/update-ddns.in index f99e330..0c27f35 100644 --- a/update-ddns.in +++ b/update-ddns.in @@ -38,8 +38,21 @@ do dnsVers[${i}]='AAAA' inetVers[${i}]='inet6' ipCmdVers[${i}]='-6' + elif [ "${ipVer}" == '46' ] || [ "${ipVer}" == '64' ] + then + dnsVers[${i}]='A' + inetVers[${i}]='inet' + ipCmdVers[${i}]='-4' + + updateUrls[${i}]="${updateUrl}" + dnsNamen[${i}]="${dnsName}" + i=$[${i}+1] + + dnsVers[${i}]='AAAA' + inetVers[${i}]='inet6' + ipCmdVers[${i}]='-6' else - >&2 echo 'Error: First column in "#ETCDIR#/update-ddns.conf" needs to be "4" or "6"!' + >&2 echo 'Error: First column in "#ETCDIR#/update-ddns.conf" needs to be "4", "6", "46" or "64"!' exit 1 fi |