????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././proc/self/root/proc/self/root/opt/alt/ruby18/share/ri/1.8/system/Resolv/ |
Upload File : |
--- !ruby/object:RI::ClassDescription
attributes: []
class_methods:
- !ruby/object:RI::MethodSummary
name: each_address
- !ruby/object:RI::MethodSummary
name: each_name
- !ruby/object:RI::MethodSummary
name: getaddress
- !ruby/object:RI::MethodSummary
name: getaddresses
- !ruby/object:RI::MethodSummary
name: getname
- !ruby/object:RI::MethodSummary
name: getnames
- !ruby/object:RI::MethodSummary
name: new
comment:
- !ruby/struct:SM::Flow::P
body: Resolv is a thread-aware DNS resolver library written in Ruby. Resolv can handle multiple DNS requests concurrently without blocking. The ruby interpreter.
- !ruby/struct:SM::Flow::P
body: "See also resolv-replace.rb to replace the libc resolver with # Resolv."
- !ruby/struct:SM::Flow::P
body: Resolv can look up various DNS resources using the DNS module directly.
- !ruby/struct:SM::Flow::P
body: "Examples:"
- !ruby/struct:SM::Flow::VERB
body: " p Resolv.getaddress "www.ruby-lang.org"\n p Resolv.getname "210.251.121.214"\n\n Resolv::DNS.open do |dns|\n ress = dns.getresources "www.ruby-lang.org", Resolv::DNS::Resource::IN::A\n p ress.map { |r| r.address }\n ress = dns.getresources "ruby-lang.org", Resolv::DNS::Resource::IN::MX\n p ress.map { |r| [r.exchange.to_s, r.preference] }\n end\n"
- !ruby/struct:SM::Flow::H
level: 2
text: Bugs
- !ruby/object:SM::Flow::LIST
contents:
- !ruby/struct:SM::Flow::LI
label: "*"
body: NIS is not supported.
- !ruby/struct:SM::Flow::LI
label: "*"
body: /etc/nsswitch.conf is not supported.
type: :BULLET
constants:
- !ruby/object:RI::Constant
comment:
- !ruby/struct:SM::Flow::P
body: Default resolver to use for Resolv class methods.
name: DefaultResolver
value: self.new
- !ruby/object:RI::Constant
comment:
- !ruby/struct:SM::Flow::P
body: Address Regexp to use for matching IP addresses.
name: AddressRegex
value: /(?:#{IPv4::Regex})|(?:#{IPv6::Regex})/
full_name: Resolv
includes: []
instance_methods:
- !ruby/object:RI::MethodSummary
name: each_address
- !ruby/object:RI::MethodSummary
name: each_name
- !ruby/object:RI::MethodSummary
name: getaddress
- !ruby/object:RI::MethodSummary
name: getaddresses
- !ruby/object:RI::MethodSummary
name: getname
- !ruby/object:RI::MethodSummary
name: getnames
name: Resolv
superclass: Object