diff options
author | Erich Eckner <git@eckner.net> | 2017-03-01 14:01:28 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-03-01 14:01:28 +0100 |
commit | 778abca8a710481c93a1b159f40e72e4b3552c88 (patch) | |
tree | 0cdd7befd6857787023a05cb45a163e3c61066a6 /update-ddns.in | |
parent | 2284d60c017230074243ca8fad58c2680237f0c8 (diff) | |
download | update-ddns-778abca8a710481c93a1b159f40e72e4b3552c88.tar.xz |
kann jetzt auch IPv4 und IPv6 gleichzeitig
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 |