Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /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