{"id":18944224,"url":"https://github.com/anthonyjruffa/dns_resources","last_synced_at":"2026-03-25T22:30:20.604Z","repository":{"id":62557303,"uuid":"99030223","full_name":"anthonyjruffa/dns_resources","owner":"anthonyjruffa","description":"Simple Ruby gem to retrieve DNS resource information","archived":false,"fork":false,"pushed_at":"2017-08-03T00:21:34.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T17:05:20.337Z","etag":null,"topics":["dns","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonyjruffa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-01T18:13:58.000Z","updated_at":"2018-10-16T09:44:31.000Z","dependencies_parsed_at":"2022-11-03T06:15:42.650Z","dependency_job_id":null,"html_url":"https://github.com/anthonyjruffa/dns_resources","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyjruffa%2Fdns_resources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyjruffa%2Fdns_resources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyjruffa%2Fdns_resources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyjruffa%2Fdns_resources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonyjruffa","download_url":"https://codeload.github.com/anthonyjruffa/dns_resources/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232037773,"owners_count":18463758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns","ruby"],"created_at":"2024-11-08T12:44:49.312Z","updated_at":"2026-03-25T22:30:20.496Z","avatar_url":"https://github.com/anthonyjruffa.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DnsResources\n\nUses the Ruby Resolv class to fetch DNS resource information from a host and return it in a way to easily be used.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dns_resources'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dns_resources\n\n## Usage\n\n```ruby\nrequire 'dns_resources'\n\n# The `host` parameter can be an IP address or a hostname.\n# The `type` parameter can consist of any of the supported types.\n\n# Return all resources for a host.\nDnsResources.get_all_resources(host)\n\n# Return a single resource of the specified type.\nDnsResources.get_resource_by_type(host, type)\n```\n\n### Supported resource types:\n| Ruby Resolv Type                   | String value |\n| ---------------------------------- | ------------ |\n| `Resolv::DNS::Resource::IN::A`     | `\"IPv4\"`     |\n| `Resolv::DNS::Resource::IN::AAAA`  | `\"IPv6\"`     |\n| `Resolv::DNS::Resource::IN::CNAME` | `\"cname\"`    |\n| `Resolv::DNS::Resource::HINFO`     | `\"hinfo\"`    |\n| `Resolv::DNS::Resource::MINFO`     | `\"minfo\"`    |\n| `Resolv::DNS::Resource::MX`        | `\"mx\"`       |\n| `Resolv::DNS::Resource::NS`        | `\"ns\"`       |\n| `Resolv::DNS::Resource::PTR`       | `\"ptr\"`      |\n| `Resolv::DNS::Resource::SOA`       | `\"soa\"`      |\n| `Resolv::DNS::Resource::IN::SRV`   | `\"srv\"`      |\n| `Resolv::DNS::Resource::TXT`       | `\"txt\"`      |\n| `Resolv::DNS::Resource::IN::WKS`   | `\"wks\"`      |\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n- Fork the project\n- Make your changes\n- Add tests for your changes\n- Submit a pull request\n\nBug reports and pull requests are welcome on GitHub at https://github.com/anthonyjruffa/dns_resources. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyjruffa%2Fdns_resources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonyjruffa%2Fdns_resources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyjruffa%2Fdns_resources/lists"}