[#75687] [Ruby trunk Bug#12416] struct rb_id_table lacks mark function — shyouhei@...
Issue #12416 has been reported by Shyouhei Urabe.
3 messages
2016/05/23
[#75763] [Ruby trunk Feature#12435] Using connect_nonblock to open TCP connections in Net::HTTP#connect — mohamed.m.m.hafez@...
Issue #12435 has been reported by Mohamed Hafez.
3 messages
2016/05/28
[#75774] Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock — Mohamed Hafez <mohamed.m.m.hafez@...>
Hi all, every now and then in my production server, I'm
4 messages
2016/05/30
[#75775] Re: Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock
— Mohamed Hafez <mohamed.m.m.hafez@...>
2016/05/30
Or does MRI's OpenSSL::SSL::SSLSocket#connect_nonblock just return
[#75782] Important: Somewhat backwards-incompatible change (Fwd: [ruby-cvs:62388] duerst:r55225 (trunk): * string.c: Activate full Unicode case mapping for UTF-8) — Martin J. Dürst <duerst@...>
With the change below, I have activated full Unicode case mapping for
4 messages
2016/05/31
[ruby-core:75461] [Ruby trunk Bug#12372] Resolv::DNS does not fetch authority section resources when calling getresource(s)
From:
ereslibre@...
Date:
2016-05-11 19:23:46 UTC
List:
ruby-core #75461
Issue #12372 has been reported by Rafael Fern叩ndez L坦pez.
----------------------------------------
Bug #12372: Resolv::DNS does not fetch authority section resources when calling getresource(s)
https://bugs.ruby-lang.org/issues/12372
* Author: Rafael Fern叩ndez L坦pez
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
In some cases, for example, when trying to retrieve the nameservers of a domain, you need to ask authoritative servers:
~~~
> dig ns org
(...)
;; ANSWER SECTION:
org. 13729 IN NS a0.org.afilias-nst.info.
org. 13729 IN NS a2.org.afilias-nst.info.
org. 13729 IN NS b0.org.afilias-nst.org.
org. 13729 IN NS b2.org.afilias-nst.org.
org. 13729 IN NS c0.org.afilias-nst.info.
org. 13729 IN NS d0.org.afilias-nst.org.
~~~
(pick one)
~~~
> dig ns ruby-lang.org @a0.org.afilias-nst.info
(...)
;; AUTHORITY SECTION:
ruby-lang.org. 86400 IN NS pichu.netlab.jp.
ruby-lang.org. 86400 IN NS support.netlab.jp.
~~~
The last reply (that returns the nameserver of the ruby-lang.org domain) comes in the authority section of the DNS message reply. Doing this with Resolv::DNS is very tricky right now:
~~~
require 'resolv'
dns = Resolv::DNS.new(:nameserver => ['199.19.56.1'])
puts dns.getresources('ruby-lang.org', Resolv::DNS::Resource::IN::NS).map(&:name)
~~~
Resolv::DNS is internally calling on extract_resources to each_answer, which only fetches the answer part of the DNS message reply. I created a pull request some time ago (https://github.com/ruby/ruby/pull/797), so it would internally call each_resource that internally collects each_answer, each_authority and each_additional.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>