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

Make Resolv::DNS::Name validation similar to host and dig commands. #1551

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

Conversation

p1366
Copy link

@p1366 p1366 commented Mar 24, 2017

Resolv::DNS::Name.create(str) does not make any validation.
And it returns false positive results for queries like

Resolv::DNS.new.getresources('.gmail....com', Resolv::DNS::Resource::IN::MX)

I added basic RFC validations in Resolv::DNS::Label.split to get ArgumentError with messages similar to host and dig commands.

@k0kubun k0kubun changed the base branch from trunk to master August 15, 2019 17:38
k0kubun added a commit to p1366/ruby that referenced this pull request Aug 17, 2019
k0kubun added a commit to p1366/ruby that referenced this pull request Aug 19, 2019
@k0kubun k0kubun requested a review from akr December 31, 2019 08:36
@hsbt hsbt force-pushed the resolv-domain-name-validation branch from c71e4c3 to 62104c2 Compare October 25, 2023 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant