{"id":28437025,"url":"https://github.com/ronin-rb/ronin-dns-proxy","last_synced_at":"2025-06-27T20:31:39.218Z","repository":{"id":152903526,"uuid":"606636711","full_name":"ronin-rb/ronin-dns-proxy","owner":"ronin-rb","description":"A configurable DNS proxy server library","archived":false,"fork":false,"pushed_at":"2025-02-12T06:55:15.000Z","size":54,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-05T08:24:31.453Z","etag":null,"topics":["dns","dns-proxy","dns-proxy-server","dns-server","infosec","mitm","mitmproxy","ronin-rb"],"latest_commit_sha":null,"homepage":"https://ronin-rb.dev","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronin-rb.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"COPYING.txt","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},"funding":{"open_collective":"ronin-rb","patreon":"roninrb"}},"created_at":"2023-02-26T04:40:19.000Z","updated_at":"2025-03-18T12:47:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"989d1a74-bb93-497f-8a3c-17f8c2ad4802","html_url":"https://github.com/ronin-rb/ronin-dns-proxy","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"63464d7453e03c0a713a3b39394b8389d18407d6"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ronin-rb/ronin-dns-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-rb%2Fronin-dns-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-rb%2Fronin-dns-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-rb%2Fronin-dns-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-rb%2Fronin-dns-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronin-rb","download_url":"https://codeload.github.com/ronin-rb/ronin-dns-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-rb%2Fronin-dns-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259759902,"owners_count":22907071,"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","dns-proxy","dns-proxy-server","dns-server","infosec","mitm","mitmproxy","ronin-rb"],"created_at":"2025-06-05T23:08:29.844Z","updated_at":"2025-06-27T20:31:39.179Z","avatar_url":"https://github.com/ronin-rb.png","language":"Ruby","funding_links":["https://opencollective.com/ronin-rb","https://patreon.com/roninrb"],"categories":[],"sub_categories":[],"readme":"# ronin-dns-proxy\n\n[![CI](https://github.com/ronin-rb/ronin-dns-proxy/actions/workflows/ruby.yml/badge.svg)](https://github.com/ronin-rb/ronin-dns-proxy/actions/workflows/ruby.yml)\n[![Code Climate](https://codeclimate.com/github/ronin-rb/ronin-dns-proxy.svg)](https://codeclimate.com/github/ronin-rb/ronin-dns-proxy)\n\n* [Website](https://ronin-rb.dev/)\n* [Source](https://github.com/ronin-rb/ronin-dns-proxy)\n* [Issues](https://github.com/ronin-rb/ronin-dns-proxy/issues)\n* [Documentation](https://ronin-rb.dev/docs/ronin-dns-proxy)\n* [Discord](https://discord.gg/6WAb3PsVX9) |\n  [Mastodon](https://infosec.exchange/@ronin_rb)\n\n## Description\n\nronin-dns-proxy is a configurable DNS proxy server library. It supports\nreturning spoofing DNS results or passing DNS queries through to the upstream\nDNS nameserver.\n\n## Features\n\n* Supports returning spoofed results to specific DNS queries.\n* Supports matching queries with regular expressions.\n* Supports dynamic DNS server rules.\n* Passing through all other DNS queries.\n* Has 95% documentation coverage.\n* Has 100% test coverage.\n\n## Examples\n\n```ruby\nrequire 'ronin/dns/proxy'\n\nRonin::DNS::Proxy.run('127.0.0.1', 2346) do |server|\n  server.rule :A, 'example.com', '10.0.0.1'\n  server.rule :AAAA, 'example.com', 'dead:beef::1'\n\n  # return multiple values\n  server.rule :A, 'ftp.example.com', ['10.0.0.42', '10.0.0.43']\n\n  # match a query using a regex\n  server.rule :TXT, /^spf\\./, \"v=spf1 include:10.0.0.1 ~all\"\n\n  # return an error for a valid hostname\n  server.rule :A, 'updates.example.com', :ServFail\n\n  # define a dynamic rule\n  server.rule(:CNAME, /^www\\./) do |type,name,transaction|\n    # append '.hax' to the domain name\n    names = name.split('.').push('hax')\n\n    transaction.respond!(names)\n  end\n\n  # return MX records\n  server.rule(:MX, 'example.com') do |type,name,transaction|\n    transaction.respond!(10, Resolv::DNS::Name.create('email.evil.com' ))\n  end\nend\n```\n\nThen try running `host -p 2346 example.com 127.0.0.1` once the server is\nrunning.\n\n## Requirements\n\n* [Ruby] \u003e= 3.0.0\n* [async-dns] ~\u003e 1.0\n* [ronin-support] ~\u003e 1.0\n\n## Install\n\n```shell\n$ gem install ronin-dns-proxy\n```\n\n### Gemfile\n\n```ruby\ngem 'ronin-dns-proxy', '~\u003e 0.1'\n```\n\n### gemspec\n\n```ruby\ngem.add_dependency 'ronin-dns-proxy', '~\u003e 0.1'\n```\n\n## Development\n\n1. [Fork It!](https://github.com/ronin-rb/ronin-dns-proxy/fork)\n2. Clone It!\n3. `cd ronin-dns-proxy/`\n4. `bundle install`\n5. `git checkout -b my_feature`\n6. Code It!\n7. `bundle exec rake spec`\n8. `git push origin my_feature`\n\n## License\n\nCopyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)\n\nronin-dns-proxy is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published\nby the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nronin-dns-proxy is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with ronin-dns-proxy.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n\n[Ruby]: https://www.ruby-lang.org\n[async-dns]: https://github.com/socketry/async-dns#readme\n[ronin-support]: https://github.com/ronin-rb/ronin-support#readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronin-rb%2Fronin-dns-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronin-rb%2Fronin-dns-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronin-rb%2Fronin-dns-proxy/lists"}