mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
modify document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
59c8d11b83
commit
53641c5118
2 changed files with 6 additions and 3 deletions
|
@ -9,8 +9,10 @@ It is possible to lookup various resources of DNS using DNS module directly.
|
|||
== example
|
||||
Resolv.getaddress("www.ruby-lang.org")
|
||||
Resolv.getname("210.251.121.214")
|
||||
Resolv::DNS.new.getresources("www.ruby-lang.org", Resolv::DNS::Resource::IN::A).collect {|r| r.address}
|
||||
Resolv::DNS.new.getresources("ruby-lang.org", Resolv::DNS::Resource::IN::MX).collect {|r| [r.exchange.to_s, r.preference]}
|
||||
|
||||
dns = Resolv::DNS.new
|
||||
dns.getresources("www.ruby-lang.org", Resolv::DNS::Resource::IN::A).collect {|r| r.address}
|
||||
dns.getresources("ruby-lang.org", Resolv::DNS::Resource::IN::MX).collect {|r| [r.exchange.to_s, r.preference]}
|
||||
|
||||
== Resolv class
|
||||
|
||||
|
@ -171,6 +173,7 @@ DNS stub resolver.
|
|||
* NIS is not supported.
|
||||
* /etc/nsswitch.conf is not supported.
|
||||
* IPv6 is not supported.
|
||||
* There is no method to close DNS socket.
|
||||
|
||||
=end
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ This library extends Time class:
|
|||
* date-time defined by RFC 2822
|
||||
* HTTP-date defined by RFC 2616
|
||||
* dateTime defined by XML Schema Part 2: Datatypes (ISO 8601)
|
||||
* various format handled by ParseDate. (string to time only)
|
||||
* various format handled by ParseDate (string to time only)
|
||||
|
||||
== Design Issue
|
||||
|
||||
|
|
Loading…
Reference in a new issue