Skip to content

Commit

Permalink
修复@子域名获取NS记录非A记录 fix get subdomain @ IP err
Browse files Browse the repository at this point in the history
修复获取@子域名记录时错误获取NS记录而非A记录
fix get the wrong recordID
  • Loading branch information
C-Y-X authored Aug 4, 2020
1 parent 77b6c26 commit b20477f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ardnspod
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ arDdnsInfo() {
domainId=$(echo $domainId | sed 's/.*"id":"\([0-9]*\)".*/\1/')

# Get Record ID
recordId=$(arDdnsApi "Record.List" "domain_id=$domainId&sub_domain=$2")
recordId=$(arDdnsApi "Record.List" "domain_id=$domainId&sub_domain=$2&record_type=A")
recordId=$(echo $recordId | sed 's/.*"id":"\([0-9]*\)".*/\1/')

# Last IP
Expand Down Expand Up @@ -123,7 +123,7 @@ arDdnsUpdate() {
domainId=$(echo $domainId | sed 's/.*"id":"\([0-9]*\)".*/\1/')

# Get Record ID
recordId=$(arDdnsApi "Record.List" "domain_id=$domainId&sub_domain=$2")
recordId=$(arDdnsApi "Record.List" "domain_id=$domainId&sub_domain=$2&record_type=A")
recordId=$(echo $recordId | sed 's/.*"id":"\([0-9]*\)".*/\1/')

# Update IP
Expand Down

0 comments on commit b20477f

Please sign in to comment.