Class: Net::DNS::Resolver
- Inherits:
-
Object
- Object
- Net::DNS::Resolver
- Defined in:
- lib/domain-probe/resolver_patch.rb
Overview
to support *
Instance Method Summary collapse
Instance Method Details
#valid?(name) ⇒ Boolean
14 15 16 17 18 19 20 |
# File 'lib/domain-probe/resolver_patch.rb', line 14 def valid?(name) if name =~ /[^-\w\.\*]/ raise ArgumentError, "Invalid domain name #{name}" else true end end |