1
0
Fork 0
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:
akr 2002-04-18 05:11:31 +00:00
parent 59c8d11b83
commit 53641c5118
2 changed files with 6 additions and 3 deletions

View file

@ -9,8 +9,10 @@ It is possible to lookup various resources of DNS using DNS module directly.
== example == example
Resolv.getaddress("www.ruby-lang.org") Resolv.getaddress("www.ruby-lang.org")
Resolv.getname("210.251.121.214") 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 == Resolv class
@ -171,6 +173,7 @@ DNS stub resolver.
* NIS is not supported. * NIS is not supported.
* /etc/nsswitch.conf is not supported. * /etc/nsswitch.conf is not supported.
* IPv6 is not supported. * IPv6 is not supported.
* There is no method to close DNS socket.
=end =end

View file

@ -10,7 +10,7 @@ This library extends Time class:
* date-time defined by RFC 2822 * date-time defined by RFC 2822
* HTTP-date defined by RFC 2616 * HTTP-date defined by RFC 2616
* dateTime defined by XML Schema Part 2: Datatypes (ISO 8601) * 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 == Design Issue