[ruby-core:69748] [Ruby trunk - Feature #11312] [Open] Add Resolv::DNS::Resource::IN::SPF

From: postmodern.mod3@...
Date: 2015-06-26 18:58:50 UTC
List: ruby-core #69748
Issue #11312 has been reported by Hal Brodigan.

----------------------------------------
Feature #11312: Add Resolv::DNS::Resource::IN::SPF
https://bugs.ruby-lang.org/issues/11312

* Author: Hal Brodigan
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
The SPF type record (RFC4408 Section 3.1.1) is quite common now. The resolv library should probably support it. As a workaround I monkey patched in the resource class:

    class Resolv::DNS::Resource::IN::SPF < Resolv::DNS::Resource::IN::TXT
      # resolv.rb doesn't define an SPF resource type.
      TypeValue = 99
      ClassValue = Resolv::DNS::Resource::IN::ClassValue
    
      Resolv::DNS::Resource::ClassHash[[TypeValue, ClassValue]] = self
    end

I could formalize my monkeypatch into an actual patch. I would just need to know whether SPF should be listed in the `ClassInsensitiveTypes` array.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next