lib/net/extended_classes.rb
# returns a publibdomainkey, or nil
# (there should only be one DKIM public key)
returns a publibdomainkey, or nil
(there should only be one DKIM public key)
returns a publibdomainkey or nil ( there should only be one DKIM public key )
def dig_dk
    Resolv::DNS.open do |dns|
      txts = dns.getresources(self,Resolv::DNS::Resource::IN::TXT).collect { |r| r.strings }
      if txts.empty? then nil else txts[0][0] end
    end
  end
def dig_dk Resolv :: DNS . open do | dns | txts = dns . getresources ( self , Resolv :: DNS :: Resource :: IN :: TXT ) . collect { | r | r . strings } if txts . empty? then nil else txts [ 0 ] [ 0 ] end end end
returns a publibdomainkey, or nil
(there should only be one DKIM public key)
returns a publibdomainkey or nil ( there should only be one DKIM public key )