Class: DKIM::Resolver
- Inherits:
-
Object
- Object
- DKIM::Resolver
- Defined in:
- lib/dkim.rb
Class Method Summary collapse
-
.lookup_record(domain) ⇒ Object
finds the text records for a given domain and joins them into a single data field.
Class Method Details
.lookup_record(domain) ⇒ Object
finds the text records for a given domain and joins them into a single data field
35 36 37 38 39 40 41 42 43 |
# File 'lib/dkim.rb', line 35 def self.lookup_record(domain) resolver = Dnsruby::DNS.new resources = resolver.getresources(domain, Dnsruby::Types::TXT) if resources return resources.collect {|r| r.data}.join else return "" end end |