0.0
The project is in a healthy, maintained state
the patch that adds SVCB Resource Record and HTTPS Resource Record
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies

Development

 Project Readme

svcb_rr_patch

Gem Version CI Maintainability

svcb_rr_patch is the patch that adds SVCB Resource Record and HTTPS Resource Record.

svcb_rr_patch supports "ech" SvcParamKey that ECHConfig.version is 0xfe0d.

Installation

he gem is available at rubygems.org. You can install it the following.

$ gem install svcb_rr_patch

Usage

You can resolve HTTPS resources.

$ irb
irb(main):001:0> require 'svcb_rr_patch'
=> true
irb(main):002:1* Resolv::DNS.new.getresources(
irb(main):003:1*   "blog.cloudflare.com",
irb(main):004:1*   Resolv::DNS::Resource::IN::HTTPS
irb(main):005:0> )
=>
[#<Resolv::DNS::Resource::IN::HTTPS:0x0000000000000001
  @svc_params=
   {"alpn"=>
     #<SvcbRrPatch::SvcParams::Alpn:0x0000000000000002
      @protocols=["h3", "h3-29", "h3-28", "h3-27", "h2"]>,
    "ipv4hint"=>
     #<SvcbRrPatch::SvcParams::Ipv4hint:0x0000000000000003
      @addresses=[#<Resolv::IPv4 104.18.26.46>, #<Resolv::IPv4 104.18.27.46>]>,
    "ipv6hint"=>
     #<SvcbRrPatch::SvcParams::Ipv6hint:0x0000000000000004
      @addresses=[#<Resolv::IPv6 2606:4700::6812:1a2e>, #<Resolv::IPv6 2606:4700::6812:1b2e>]>},
  @svc_priority=1,
  @target_name="",
  @ttl=300>]

License

The gem is available as open source under the terms of the MIT License.