Skip to content

Clarify SetRecords example/doc #174

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

Merged
merged 2 commits into from
May 5, 2025
Merged

Conversation

NicolaiSoeborg
Copy link
Contributor

@NicolaiSoeborg NicolaiSoeborg commented May 4, 2025

From my understanding the example is wrong, SetRecords should "overwrite" ::3 and ::4 (like it does for the A record above)

@mholt mholt requested a review from gucci-on-fleek May 5, 2025 03:26
Copy link
Collaborator

@gucci-on-fleek gucci-on-fleek left a comment

Choose a reason for hiding this comment

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

No, this is correct as-is; calling SetRecords only on records with names a.example.com. should not affect records with names b.example.com.. But I do see how you could easily miss that the first three lines are for a different domain than the last two lines since there's only a single-character difference between them.

Could you please replace the names a.example.com. and b.example.com. with either one.example.com. and two.example.com. or alpha.example.com. and beta.example.com. (your choice). That should hopefully make this clearer for future users. Thanks!

@NicolaiSoeborg NicolaiSoeborg changed the title Fix SetRecords example/doc Clarify SetRecords example/doc May 5, 2025
@NicolaiSoeborg
Copy link
Contributor Author

Ahh yep completely missed the a/b part! Thanks for pointing that out.
Updated with alpha/beta to make it more visible

Copy link
Collaborator

@gucci-on-fleek gucci-on-fleek left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks both! I like legibility. 🤓

@mholt mholt merged commit 933c390 into libdns:master May 5, 2025
@NicolaiSoeborg NicolaiSoeborg deleted the patch-1 branch May 5, 2025 19:39
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.

3 participants