ruby-dns / net-dns

Net::DNS is a DNS library written in Ruby.
http://net-dns.rubyforge.org
Other
165 stars 43 forks source link

type rdata_99 #47

Closed printercu closed 10 months ago

printercu commented 11 years ago

Don't know what is the type and google shows just few results. But I've got an error:

1.9.3p374 :028 >   Net::DNS::Resolver.new.query("shop74.su", Net::DNS::ANY)
ArgumentError: Unkown type number 99
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/rr/types.rb:185:in `new_from_num'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/rr/types.rb:128:in `initialize'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/rr.rb:313:in `new'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/rr.rb:313:in `new_from_binary'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/rr.rb:151:in `parse_packet'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/packet.rb:508:in `block in new_from_data'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/packet.rb:506:in `times'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/packet.rb:506:in `new_from_data'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/packet.rb:456:in `parse'
    from __gems_root__/gems/net-dns-0.7.1/lib/net/dns/resolver.rb:1011:in `query'
    from (irb):28
bladealslayer commented 11 years ago

This is SPF RR type, defined in http://tools.ietf.org/html/rfc4408. SPF should be parsed just as a TXT record.