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

add case insensitive searching for zone names #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mzagrabe
Copy link
Contributor

Domain names are case insensitive. Searches for a mixed case zone and a
lowercase zone with the same symbols (letters) should return the same
zone object.

This point will be particularly evident when searching for IPv6 arpa
domains (zones) created before commit 9f65014 when the default for
NetAddr::IP would create v6 addresses in upper case - thus an uppercase
ip6.arpa zone. Post commit 9f65014 lowercase zones would be
searched for - thus a search miss would occur.

Additionally this commit adds tests for case insensitive zone searches,
as well as alias searches.

Lastly, whitespace was modified for the Zone::search subroutine to
elimitate trailing spaces and translate tabs to 4 spaces.

Domain names are case insensitive. Searches for a mixed case zone and a
lowercase zone with the same symbols (letters) should return the same
zone object.

This point will be particularly evident when searching for IPv6 arpa
domains (zones) created before commit 9f65014 when the default for
NetAddr::IP would create v6 addresses in upper case - thus an uppercase
ip6.arpa zone. Post commit 9f65014 lowercase zones would be
searched for - thus a search miss would occur.

Additionally this commit adds tests for case insensitive zone searches,
as well as alias searches.

Lastly, whitespace was modified for the Zone::search subroutine to
elimitate trailing spaces and translate tabs to 4 spaces.
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.

None yet

1 participant