Skip to content

Commit

Permalink
4th+ level domain
Browse files Browse the repository at this point in the history
  • Loading branch information
alviy authored Apr 25, 2024
1 parent d1df5f3 commit 4a8c225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_alviy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ _get_root() {
i=2
p=1
while true; do
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
h=$(printf "%s" "$domain" | rev | cut -d . -f 1-2 | rev )
if [ -z "$h" ]; then
#not valid
return 1
Expand Down

0 comments on commit 4a8c225

Please sign in to comment.