Skip to content

Parser apparently doesnt work for Ipv4 addresses #162

@maaz-munir

Description

@maaz-munir

Is there not a parser for ipv4 whois records?

This is the code i am currently trying to run to output the properties returned from the parser.

client = Whois::Client.new(:timeout => 40)
domain = client.lookup("1.1.1.1")
p = domain.parser
msg = {}    
puts "Parser class: #{p.class}"

Whois::Parser::PROPERTIES.each do |x_prop|
  begin
     value = p.send(x_prop)
      puts "Property #{x_prop}: #{value.inspect}"
      msg[x_prop] = value if value
  rescue => e
    puts "Error accessing #{x_prop}: #{e.message}"
  end
end 

puts "Final msg: #{msg.inspect}"

And it returns unable to return a parser for property [disclaimer(example)]

This works fine for domains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions