onetimesecret / onetimesecret

Keep passwords and other sensitive information out of your inboxes and chat logs.
https://onetimesecret.com/
MIT License
2.12k stars 382 forks source link

Revisit functionality in whois gem #545

Open delano opened 3 months ago

delano commented 3 months ago

The whois gem is a Ruby library that provides a client for querying WHOIS servers. WHOIS is a protocol used to query databases that store information about the registered users of an Internet resource, such as a domain name or an IP address block. The whois gem allows you to perform WHOIS lookups and retrieve information about domain registrations.

Key Features:

Installation:

To install the whois gem, you can add it to your Gemfile and run bundle install:

gem 'whois'

Then run:

bundle install

Usage Example:

Here's a simple example of how to use the whois gem to perform a WHOIS lookup:

require 'whois'

# Create a new WHOIS client
client = Whois::Client.new

# Perform a WHOIS lookup for a domain
record = client.lookup("example.com")

# Print the WHOIS record
puts record

# Access specific information from the WHOIS record
puts "Domain: #{record.domain}"
puts "Status: #{record.status}"
puts "Created on: #{record.created_on}"
puts "Expires on: #{record.expires_on}"
puts "Registrar: #{record.registrar.name}"

This example demonstrates how to create a WHOIS client, perform a lookup for a domain, and access specific information from the WHOIS record.

Documentation:

For more detailed information and advanced usage, you can refer to the official documentation:

github-actions[bot] commented 8 hours ago

Just a heads up -- this issue is being marked stale (open 90 days with no activity). It will close automatically in a few weeks. You can comment or remove the stale label to restart the clock.