summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-03-01 14:01:28 +0100
committerErich Eckner <git@eckner.net>2017-03-01 14:01:28 +0100
commit778abca8a710481c93a1b159f40e72e4b3552c88 (patch)
tree0cdd7befd6857787023a05cb45a163e3c61066a6
parent2284d60c017230074243ca8fad58c2680237f0c8 (diff)
downloadupdate-ddns-778abca8a710481c93a1b159f40e72e4b3552c88.tar.xz
kann jetzt auch IPv4 und IPv6 gleichzeitig
-rw-r--r--update-ddns.in15
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