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

feat: add Resolver#AddZone() method #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bryanchriswhite
Copy link

Changes

image

@bryanchriswhite bryanchriswhite force-pushed the feat/runtime-zone-updates branch from 89c7fce to 1887f3e Compare May 15, 2023 15:41
@Olshansk
Copy link

Olshansk commented Jul 27, 2023

@ix64 @trois-six @foxcpp Any chance we can get a review on this or help by becoming repo maintainers?

func (r *Resolver) AddZone(name string, zone Zone) error {
r.zonesMutex.Lock()
defer r.zonesMutex.Unlock()

Copy link

Choose a reason for hiding this comment

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

Would be nice if this canonicalized the name, since that's what the server tries to match during lookups.

Suggested change
name = dns.CanonicalName(name)

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