DNSSEC Checker API - Ruby Gem
DNSSEC Checker validates the DNSSEC (Domain Name System Security Extensions) configuration of a domain. It verifies that DNS responses are authenticated and haven't been tampered with.
Installation
Add this line to your application's Gemfile:
gem 'apiverve_dnsseccheck'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install apiverve_dnsseccheck
Getting Started
Get your API key at APIVerve
Basic Usage
require 'apiverve_dnsseccheck'
# Initialize the client
client = APIVerve::Dnsseccheck::Client.new(api_key: "YOUR_API_KEY")
# Make a request
response = client.execute({ domain: "cloudflare.com" })
# Print the response
puts response
Error Handling
begin
response = client.execute({ domain: "cloudflare.com" })
puts response["data"]
rescue APIVerve::Dnsseccheck::ValidationError => e
puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Dnsseccheck::APIError => e
puts "API error: #{e.}"
puts "Status code: #{e.status_code}"
end
Debug Mode
# Enable debug logging
client = APIVerve::Dnsseccheck::Client.new(
api_key: "YOUR_API_KEY",
debug: true
)
Example Response
{
"status": "ok",
"error": null,
"data": {
"domain": "cloudflare.com",
"dnssecEnabled": true,
"valid": true,
"records": {
"dnskey": 3,
"ds": 2,
"nsec": "NSEC3"
},
"errors": [],
"details": {
"dnskeyCount": 3,
"dsCount": 2
},
"status": "DNSSEC is properly configured with DS records at parent",
"recommendation": "DNSSEC is properly configured",
"riskScore": 5,
"riskLevel": "low"
}
}
Documentation
For more information, visit the API Documentation.
Support
- Website: https://apiverve.com/marketplace/dnsseccheck?utm_source=ruby&utm_medium=readme
- Email: hello@apiverve.com
License
This gem is available under the MIT License.