mirror of
https://github.com/abh/geodns.git
synced 2026-04-26 19:35:51 +03:00
[GH-ISSUE #142] Don't resolve record directly #383
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#383
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (May 3, 2024).
Original GitHub issue: https://github.com/abh/geodns/issues/142
Hello there,
I wanted to know is there any way with this library to prevent direct lookup results for de.example.com, europe.example.com, ... and only allow resolves for example.com ?
Thanks in advance.
@ghost commented on GitHub (May 3, 2024):
@abh
I can add this code to the serve.go and it will resolve the issue, do you think this is the right way? Should I open pull request?
Also this must be added to imports on top:
@abh commented on GitHub (May 4, 2024):
Something like that could work with an option to enable the feature.
Though I think it'd make more sense to "hide" the targeting rules in some way in a separate part of the data structure (and then if the data comes that way then they can't be queried directly).
Many years ago @miekg suggested having the zone format be a regular "RFC 1035 zone" with extra metadata for the targeting information; that might be worth revisiting again.
@ghost commented on GitHub (May 4, 2024):
@abh I have managed to code it somehow, but I don't know where to put for configuration or if its the right decision, take a look:
github.com/abh/geodns@6047cb9567