Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 Bugfixes of dns_dynv6.sh: 1. domains containing 'id' are now working as intended and 2. hostnames are now cast to lowercase on the fly #5218

Merged
merged 5 commits into from
Sep 15, 2024

Conversation

IIIPr0t0typ3III
Copy link
Contributor

  1. There was a grep for id to get the id of the provided zone. This was changed to find "id": to only get this field.
  2. Since DNS is case insensitive and dynv6 rejects any records containing upper case letters a cast to lowercase was implemented. This fix is necessary to complete the unit tests / github actions required for DNS-API pull requests

IIIPr0t0typ3III and others added 4 commits July 5, 2024 18:43
…e string 'id' dns_dynv6.sh

This will now search for `"id:"` instead of `id` and therefore will only find the id field and not any other field containing the sub-string 'id'
… upper case characters would not be accepted (dynv6 API rejects those).

Now the fulldomain will be cast to lowercase first which should not make
any difference since DNS is case insensitive.
…mply with requested standards.

This does not change any functionality in this special case but the
request for [:upper:] and [:lower:] makes a lot of sense in general.
Copy link

Welcome
First thing: don't send PR to the master branch, please send to the dev branch instead.
Please make sure you've read our DNS API Dev Guide and DNS-API-Test.
Then reply on this message, otherwise, your code will not be reviewed or merged.
We look forward to reviewing your Pull request shortly ✨
注意: 必须通过了 DNS-API-Test 才会被 review. 无论是修改, 还是新加的 dns api, 都必须确保通过这个测试.

@IIIPr0t0typ3III
Copy link
Contributor Author

IIIPr0t0typ3III commented Jul 22, 2024

The unit tests / github actions requested for a DNS-API run without errors.

Thanks for building and maintaining such a great tool!

fulldomain=$1
txtvalue=$2
fulldomain=$(echo "$1" | tr '[:upper:]' '[:lower:]')
txtvalue="$2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use _lower_case()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I overlooked the existence of that function but this is changed now.

Also thanks for the quick response!

@Neilpang Neilpang merged commit e0214a2 into acmesh-official:dev Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants