Skip to content

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.

1 participant