<commit_before>= resolv-ipv6favor

Resolver class for Ruby.
It looks up AAAA record first, then A record. Ruby's default resolver class (Resolv) looks up A record first, then AAAA record.

== Usage

for example, assume that "ipv6.example.net" have these records on DNS,

<tt>
ipv6.example.net.           80000   IN      A       192.0.2.1

ipv6.example.net.           80000   IN      AAAA    2001:db8::1
</tt>

then Ruby's default Resolve behaves:

<tt>
require 'resolv'

Resolv.getaddresses("ipv6.example.net") #=> ["192.0.2.1"]
Resolv.getaddress("ipv6.example.net")   #=> ["192.0.2.1", "2001:db8::1"]
</tt>

If you want to lookup AAAA record prior to A record, then:

<tt>
require 'resolv-ipv6favor'

IPv6FavorResolv.getaddresses("ipv6.example.net") #=> ["2001:db8::1"]
IPv6FavorResolv.getaddress("ipv6.example.net")   #=> ["2001:db8::1", "192.0.2.1"]
</tt>

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a<commit_msg>decorate rdoc<commit_after>= resolv-ipv6favor

Resolver class for Ruby.
It looks up AAAA record first, then A record. Ruby's default resolver class (Resolv) looks up A record first, then AAAA record.

== Usage

for example, assume that "ipv6.example.net" have these records on DNS,

 ipv6.example.net.           80000   IN      A       192.0.2.1
 ipv6.example.net.           80000   IN      AAAA    2001:db8::1

then 'Resolv' class (in the Ruby Standard Library) behaves:

 require 'resolv'
 
 Resolv.getaddresses("ipv6.example.net") #=> ["192.0.2.1"]
 Resolv.getaddress("ipv6.example.net")   #=> ["192.0.2.1", "2001:db8::1"]

If you want to lookup AAAA record prior to A record, install 'resolv-ipv6favor', then:

 require 'resolv-ipv6favor'

 IPv6FavorResolv.getaddresses("ipv6.example.net") #=> ["2001:db8::1"]
 IPv6FavorResolv.getaddress("ipv6.example.net")   #=> ["2001:db8::1", "192.0.2.1"]

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
{'fraction_non_alphanumeric': 0.137104506232023, 'fraction_numerical': 0.0666347075743049, 'mean_word_length': 3.517316017316017, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3540814', 'n_tokens_mistral': 828, 'n_tokens_neox': 775, 'n_words': 228}