I am trying to extend Resolv::DNS
to be able to get SPF resources. For this, I've simply added the following:
class Resolv::DNS::Resource::IN::SPF < Resolv::DNS::Resource::IN::TXT
end
class Resolv::DNS::Resource::SPF < Resolv::DNS::Resource::TXT
end
When I now use SPF
instead of TXT
for querying, I get an empty hash. So I tried digging further.. on resolv.rb line 516, the type class is provided as second argument when creating a Message
object, which is located on line 1257. However, there stops my understanding of how things work.
Can anyone enlighten me or give me some guidance?