Unverified Commit 7b5d94d0 authored by Roman Lumetsberger's avatar Roman Lumetsberger Committed by GitHub
Browse files

convert domain and subdomain to lower case

parent cb021efa
...@@ -36,6 +36,10 @@ dns_ipv64_add() { ...@@ -36,6 +36,10 @@ dns_ipv64_add() {
_debug _sub_domain "$_sub_domain" _debug _sub_domain "$_sub_domain"
_debug _domain "$_domain" _debug _domain "$_domain"
# convert to lower case
_domain = $(echo "$_domain" | tr '[:upper:]' '[:lower:]')
_sub_domain = $(echo "$_sub_domain" | tr '[:upper:]' '[:lower:]')
# Now add the TXT record # Now add the TXT record
_info "Trying to add TXT record" _info "Trying to add TXT record"
if _ipv64_rest "POST" "add_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then if _ipv64_rest "POST" "add_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then
...@@ -70,6 +74,10 @@ dns_ipv64_rm() { ...@@ -70,6 +74,10 @@ dns_ipv64_rm() {
_debug _sub_domain "$_sub_domain" _debug _sub_domain "$_sub_domain"
_debug _domain "$_domain" _debug _domain "$_domain"
# convert to lower case
_domain = $(echo "$_domain" | tr '[:upper:]' '[:lower:]')
_sub_domain = $(echo "$_sub_domain" | tr '[:upper:]' '[:lower:]')
# Now delete the TXT record # Now delete the TXT record
_info "Trying to delete TXT record" _info "Trying to delete TXT record"
if _ipv64_rest "DELETE" "del_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then if _ipv64_rest "DELETE" "del_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment