Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

feat(client) add option to override ttl #57

Merged
merged 1 commit into from
Aug 25, 2018
Merged

feat(client) add option to override ttl #57

merged 1 commit into from
Aug 25, 2018

Conversation

Tieske
Copy link
Member

@Tieske Tieske commented Aug 23, 2018

Implements a new option validTtl that, if given, overrides the
ttl of any valid answer received from the name server.

closes #48

@Tieske Tieske self-assigned this Aug 23, 2018
@Tieske Tieske requested a review from hishamhm August 23, 2018 16:32
Copy link
Contributor

@hishamhm hishamhm left a comment

Choose a reason for hiding this comment

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

Both the PR description and the comment describe the option as "override ttl", so how about calling validTtl as overrideTtl or forceTtl instead?

Also, I'm assuming there's a use case for forcing the TTL. It would be nice to add that to the PR description for future reference.

@Tieske
Copy link
Member Author

Tieske commented Aug 23, 2018

I picked validTtl because it is used as the ttl for valid answers (there are others for errors etc). If we'd call it overrideTtl it wouldn't explain which answers it would override.

Additionally, valid is the name of the similar nginx option

regarding the usecase, I referenced the original issue it resolves, but I could repeat it here?

@hishamhm
Copy link
Contributor

hishamhm commented Aug 23, 2018 via email

Implements a new option `validTtl` that, if given, overrides the
ttl of any valid answer received from the name server.

closes #48
@Tieske Tieske merged commit 3011fdd into master Aug 25, 2018
@Tieske Tieske deleted the feat/valid-ttl branch August 25, 2018 06:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Ability to override DNS TTL
2 participants