| Class | Dnsruby::DNS |
| In: |
lib/Dnsruby/DNS.rb
|
| Parent: | Object |
DNS stub resolver.
((|config_info|)) should be nil, a string or a hash.
If nil is given, /etc/resolv.conf and platform specific information is used.
If a string is given, it should be a filename which format is same as /etc/resolv.conf.
If a hash is given, it may contains information for nameserver, search and ndots as follows.
Dnsruby::DNS.new({:nameserver=>["210.251.121.21"], :search=>["ruby-lang.org"], :ndots=>1})
address lookup methods. ((|name|)) must be an instance of Dnsruby::Name or String. Resultant address is represented as an instance of Dnsruby::IPv4 or Dnsruby::IPv6.
These methods lookup hostnames . ((|address|)) must be an instance of Dnsruby::IPv4, Dnsruby::IPv6 or String. Resultant name is represented as an instance of Dnsruby::Name.
These methods lookup DNS resources of ((|name|)). ((|name|)) must be a instance of Dnsruby::Name or String. ((|type|)) must be a member of Dnsruby::Types ((|class|)) must be a member of Dnsruby::Classes Resultant resource is represented as an instance of (a subclass of) Dnsruby::RR. (Dnsruby::RR::IN::A, etc.)
The searchlist and other Config info is applied to the domain name if appropriate. All the nameservers are tried (if there is no timely answer from the first).
This class uses Resolver to perform the queries.
| config | [R] |
STD0013 (RFC 1035, etc.) ftp.isi.edu/in-notes/iana/assignments/dns-parameters