-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
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
Labels
No labels