这是indexloc提供的服务,不要输入任何密码
Skip to content

Begin fleshing out DNS records #12

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 1 commit into from
May 23, 2022
Merged

Begin fleshing out DNS records #12

merged 1 commit into from
May 23, 2022

Conversation

dglsparsons
Copy link
Collaborator

@dglsparsons dglsparsons commented Mar 15, 2022

Still to do:

  • Validate the schema across fields (i.e. no mx_priority on non-mx records, no srv on non-srv records, no value on srv records).
  • Flesh out the Update method
  • Expand the test suite
  • Add import method for DNS Records
  • Add documentation and examples
  • Add testing domain env variable to CI

Fixes INT-309

@dglsparsons dglsparsons force-pushed the dns-records branch 4 times, most recently from d6c698a to 875995c Compare March 29, 2022 17:06
@dglsparsons dglsparsons force-pushed the dns-records branch 5 times, most recently from be7c54c to a7942c9 Compare May 23, 2022 11:59
@dglsparsons dglsparsons marked this pull request as ready for review May 23, 2022 12:02
@dglsparsons dglsparsons requested a review from ecklf May 23, 2022 12:02
)

func (c *Client) ListDNSRecords(ctx context.Context, domain, teamID string) (r []DNSRecord, err error) {
url := fmt.Sprintf("%s/v4/domains/%s/records?limit=100", c.baseURL, domain)
Copy link
Member

Choose a reason for hiding this comment

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

Could this be problematic if someone uses more than 100 domains?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good shout, it's currently only used by the sweeper (script to remove any orphaned test resources). So it shouldn't be an issue for anything.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll add a comment explaining this though.

@dglsparsons dglsparsons merged commit dd96817 into main May 23, 2022
@dglsparsons dglsparsons deleted the dns-records branch May 23, 2022 13:18
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