From 778abca8a710481c93a1b159f40e72e4b3552c88 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Mar 2017 14:01:28 +0100 Subject: kann jetzt auch IPv4 und IPv6 gleichzeitig --- update-ddns.in | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/update-ddns.in b/update-ddns.in index f99e330..0c27f35 100644 --- a/update-ddns.in +++ b/update-ddns.in @@ -35,11 +35,24 @@ do ipCmdVers[${i}]='-4' elif [ "${ipVer}" == '6' ] then + 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 -- cgit v1.2.3-70-g09d2