{"id":13879231,"url":"https://github.com/ruby/resolv","last_synced_at":"2025-05-15T08:10:18.296Z","repository":{"id":40695284,"uuid":"266091033","full_name":"ruby/resolv","owner":"ruby","description":"A thread-aware DNS resolver library written in Ruby","archived":false,"fork":false,"pushed_at":"2025-04-28T18:56:11.000Z","size":406,"stargazers_count":42,"open_issues_count":19,"forks_count":34,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-05-14T23:43:48.172Z","etag":null,"topics":["dns","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-22T11:12:05.000Z","updated_at":"2025-04-30T16:13:08.000Z","dependencies_parsed_at":"2023-12-13T07:24:08.043Z","dependency_job_id":"8bc3bb75-580f-433b-b9f9-ebdcf04f32f7","html_url":"https://github.com/ruby/resolv","commit_stats":{"total_commits":242,"total_committers":31,"mean_commits":7.806451612903226,"dds":0.743801652892562,"last_synced_commit":"77911d982db820c56dd3fa98c30f9a4be1701bf0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fresolv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fresolv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fresolv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fresolv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/resolv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254301433,"owners_count":22047904,"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-08-06T08:02:14.372Z","updated_at":"2025-05-15T08:10:18.259Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Resolv\n\nResolv is a thread-aware DNS resolver library written in Ruby.  Resolv can\nhandle multiple DNS requests concurrently without blocking the entire Ruby\ninterpreter.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'resolv'\n```\n\nAnd then execute:\n\n```bash\nbundle install\n```\n\nOr install it yourself as:\n\n```bash\ngem install resolv\n```\n\n## Usage\n\n```ruby\np Resolv.getaddress \"www.ruby-lang.org\"\np Resolv.getname \"210.251.121.214\"\n\nResolv::DNS.open do |dns|\n  ress = dns.getresources \"www.ruby-lang.org\", Resolv::DNS::Resource::IN::A\n  p ress.map(\u0026:address)\n  ress = dns.getresources \"ruby-lang.org\", Resolv::DNS::Resource::IN::MX\n  p ress.map { |r| [r.exchange.to_s, r.preference] }\nend\n```\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\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/resolv.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fresolv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fresolv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fresolv/lists"}