dnsruby
所属分类:collect
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2023-06-23 12:49:23
上 传 者:
sh-1993
说明: Dnsruby是Ruby的功能完整的DNS(SEC)客户端,世界上许多最大的DNS注册中心和OpenDNSSEC项目都在使用它,
(Dnsruby is a feature-complete DNS(SEC) client for Ruby, as used by many of the world s largest DNS registries and the OpenDNSSEC project,)
文件列表:
.coveralls.yml (70, 2023-06-23)
.yardopts (73, 2023-06-23)
DNSSEC (2245, 2023-06-23)
EVENTMACHINE (93, 2023-06-23)
EXAMPLES (4497, 2023-06-23)
Gemfile (39, 2023-06-23)
LICENSE (546, 2023-06-23)
RELEASE_NOTES.md (7460, 2023-06-23)
Rakefile (989, 2023-06-23)
SIGNED_UPDATES (920, 2023-06-23)
demo/ (0, 2023-06-23)
demo/axfr.rb (5595, 2023-06-23)
demo/check_soa.rb (5075, 2023-06-23)
demo/check_zone.rb (4506, 2023-06-23)
demo/digdlv.rb (2495, 2023-06-23)
demo/digroot.rb (1704, 2023-06-23)
demo/example_recurse.rb (1048, 2023-06-23)
demo/mresolv.rb (2602, 2023-06-23)
demo/mx.rb (1228, 2023-06-23)
demo/rubydig.rb (1986, 2023-06-23)
demo/to_resolve.txt (38946, 2023-06-23)
demo/trace_dns.rb (1745, 2023-06-23)
dnsruby.gemspec (1983, 2023-06-23)
lib/ (0, 2023-06-23)
lib/dnsruby.rb (6721, 2023-06-23)
lib/dnsruby/ (0, 2023-06-23)
lib/dnsruby/DNS.rb (9941, 2023-06-23)
lib/dnsruby/bit_mapping.rb (4343, 2023-06-23)
lib/dnsruby/bitmap.rb (3341, 2023-06-23)
lib/dnsruby/cache.rb (4622, 2023-06-23)
lib/dnsruby/code_mapper.rb (4885, 2023-06-23)
lib/dnsruby/code_mappers.rb (9335, 2023-06-23)
lib/dnsruby/config.rb (14230, 2023-06-23)
lib/dnsruby/dnssec.rb (12994, 2023-06-23)
lib/dnsruby/hosts.rb (4093, 2023-06-23)
... ...
[![Build Status](https://github.com/alexdalitz/dnsruby/actions/workflows/ci.yml/badge.svg)]
[![Coverage Status](https://img.shields.io/coveralls/alexdalitz/dnsruby.svg)](https://coveralls.io/r/alexdalitz/dnsruby?branch=master)
Dnsruby
=======
Dnsruby is a pure Ruby DNS client library which implements a
stub resolver. It aims to comply with all DNS RFCs.
Dnsruby presents an enhanced API for DNS. It is based on Ruby's core
resolv.rb Resolv API, but has been much extended to provide a
complete DNS implementation.
Dnsruby runs a single I/O thread to handle all concurrent
queries. It is therefore suitable for high volume DNS applications.
The following is a (non-exhaustive) list of features :
- Implemented RRs : A, AAAA, AFSDB, ANY, CAA, CERT, CNAME, DNAME,
GPOS, HINFO, ISDN, LOC, MB, MG, MINFO, MR, MX, NAPTR, NS, NSAP,
NXT, OPT, PTR, PX, RP, RT, SOA, SPF, SRV, TKEY, TSIG, TXT,
WKS, X25, DNSKEY, RRSIG, NSEC, NSEC3, NSEC3PARAM, DS, DLV
- Generic RR types supported (RFC3597)
- (Signed) Zone transfer (AXFR and IXFR) supported
- (Signed) Dynamic updates supported
- DNSSEC validation supported
Dependencies
------------
Dnsruby can run with no dependencies. However, if you wish to
use TSIG or DNSSEC then the OpenSSL library must be available.
This is a part of the Ruby standard library, but appears not to
be present on all Ruby platforms. If it is not available, then
the test code will not run the tests which require it. Code which
attempts to use the library (if it is not present) will raise an
exception.
Demo Code
---------
The demo folder contains some example programs using Dnsruby.
These examples include a basic dig tool (rubydig) and a tool to
concurrently resolve many names, amongst others.
Unit Tests
----------
Tests require a current version of minitest (see the .gemspec file
for which version is required). In order for the tests to run
successfully you may need to have the bundler gem installed and
run `bundle` or `bundle install` from the project root to install
a suitable version of minitest.
There are "online" and "offline" tests. You can use rake to
conveniently run the tests. From the project root you can run:
```
rake test # run all tests
rake test_offline # run only offline tests
rake test_online # run only online tests
```
If you get the following error when running rake test tasks,
then you may need to preface the command with bundle exec to
ensure that the gem versions specified in Gemfile.lock are used
at runtime:
```
bundle exec rake test
```
Usage Help
----------
There are a couple of blog articles that might be helpful
in understanding how to use Dnsruby. These used to be hosted by
Nominet UK, however the original content has been copied to the
dnsruby github wiki at :
https://github.com/alexdalitz/dnsruby/wiki
Contact/Links
-------
| Link Type | Link/Text |
|-----|-----
| Author Email | alex@caerkettontech.com |
| Github | https://github.com/alexdalitz/dnsruby |
| Google Group | https://groups.google.com/forum/#!forum/dnsruby |
| Rubygems | http://rubygems.org/gems/dnsruby/ |
| Documentation | https://www.rubydoc.info/gems/dnsruby/ |
近期下载者:
相关文件:
收藏者: