summaryrefslogtreecommitdiff
path: root/lib/resolv.rb
AgeCommit message (Collapse)Author
2008-01-05* lib/resolv.rb (Reolv::DNS#each_address): get A record and then AAAAnaruse
record. [ruby-dev:32925] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-28* lib/resolv.rb (Resolv::DNS#each_address): now returns IPv6 address.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-26* lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array ofnaruse
Resolv::DNS::Label::Str. * lib/resolv.rb (Resolv::DNS::MessageEncoder#put_label): String#string is not defined, so replace to_s. * lib/resolv.rb (Resolv::IPv6#to_name): ip6.int is obsoleted by ip6.arpa. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-08* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_string):matz
affected by str[0] returns 1 char string. [ruby-dev:29223] * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_labels): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-07* lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP#initialize):akr
Use AF_INET6 for nameservers containing colons. patch by Stephan Maka. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-20* lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler):matz
qualify the access for Config constant. [ruby-dev:28338] * lib/resolv.rb (Resolv::DNS::Resource::IN::A): qualify ClassValue. [ruby-dev:28338] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15* lib/resolv.rb (Resolv::DNS::Resource#ttl): new attribute.akr
(Resolv::DNS::Resource#==): ignore @ttl. (Resolv::DNS::Resource#hash): ditto. (Resolv::DNS::Message::MessageDecoder#get_rr): save TTL in a Resource object. based on [ruby-core:5190] by Eric Hodel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09Added Eric Hodel's rdoc to resolv.rb and added file to .documentryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-07* lib/resolv.rb (Resolv::DNS::Name#subdomain_of?): new method.akr
(Resolv::DNS::Name#inspect): ditto. Suggested by Sam Roberts. [ruby-talk:129086] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-05* lib/resolv.rb (Resolv::DNS::Resource::TXT): multiple strings was notakr
handled. (Resolv::DNS::Resource::TXT#strings): new method to return all strings. (Resolv::DNS::Message::MessageEncoder#put_string_list): new method. (Resolv::DNS::Message::MessageDecoder#get_string_list): ditto. based on [ruby-talk:129732] by Sam Roberts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-29example modified a bit.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-29* lib/resolv.rb (Resolv::DNS::Resource::IN::SRV): Added RFC2782 SRVakr
resource record for specifying location of services. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-28* lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf):akr
parse options line for ndots option. (Resolv::Hosts#lazy_initialize): return self. (Resolv::DNS#lazy_initialize): ditto. (Resolv::DNS::Config#lazy_initialize): ditto. Suggested by Sam Roberts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-21* lib/resolv.rb (Resolv::DNS::Config.resolv): don't raise ResolvError.akr
reported by Sam Roberts. [ruby-talk:127133] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-18* lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf): ignoreakr
domain and search directive without an argument. reported by Sam Roberts. [ruby-talk:126781] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-23* lib/resolv.rb (Config.default_config_hash): when multiple domainsusa
are set, Win32::Resolv.get_resolv_info returns Array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12* lib/resolv.rb (Resolv::DNS::Config): make it configurable withoutakr
external file such as /etc/resolv.conf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23* lib/resolv.rb: don't use Regexp#source to embed regexps.akr
[ruby-dev:23432] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-29* exception message clean-up by Ian Macdonald <ian@caliban.org>.matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16consistent parentheses in assignment RHS.matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-24* ext/Win32API/lib/win32/resolv.rb: added.usa
* lib/resolv.rb: support Win32 platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-21* lib/resolv.rb (Resolv::DNS::Resource#hash): use XOR to accumulateakr
hash value. * lib/tsort.rb (TSort#each_strongly_connected_component): don't use block argument. (each_strongly_connected_component_from): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-02use Object#class instead of deprecated Object#type.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-12* lib/resolv.rb (Resolv::DNS::open, close): new.nobu
* lib/optparse.rb, lib/optparse: import. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-11* lib/resolv.rb: untaint strings read from /etc/hosts andshugo
/etc/resolv.conf to prevent SecurityError when $SAFE==1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-18modify document.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-22* lib/resolv.rb: fix arguments to create exceptions.akr
Patch from matt@lickey.com. (ruby-bugs:PR#278) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-12* lib/resolv.rb: don't complete domains for absolute FQNs.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-08* lib/resolv.rb: use its own thread group for background threads.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-01-16* lib/timeout.rb (timeout): new optional argument to specify anakr
exception class. * lib/resolv.rb: use Resolv::ResolvTimeout for internal timeout to avoid problem with timeout of application. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-18* lib/time.rb: date.rb is not required anymore.akr
* lib/resolv.rb: fix document. refine IPv6 regex. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-08* process.c (security): always give warning for insecure PATH.matz
* dir.c (my_getcwd): do not rely on MAXPATHLEN. * file.c (rb_file_s_readlink): ditto. * file.c (path_check_1): ditto. * eval.c (rb_yield_0): should not call rb_f_block_given_p(). * string.c (rb_str_chomp_bang): should terminate string by NUL. * eval.c (rb_yield_0): better error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-01* bignum.c (rb_big_aref): idx may be a Bignum.matz
* numeric.c (fix_aref): negative index must return zero. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-09-08* eval.c (rb_thread_restore_context): save current value ofmatz
lastline and lastmatch in the thread struct for later restore. * eval.c (rb_thread_save_context): restore lastline and lastmatch. * numeric.c (flo_to_s): should handle negative float value. * class.c (rb_include_module): should check whole ancestors to avoid duplicate module inclusion. * string.c (trnext): should check backslash before updating "now" position. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-19* eval.c (rb_f_require): searches ".rb" and ".so" at the samematz
time. previous behavior (search ".rb", then ".so") has a security risk (ruby-bugs#PR140). * array.c (rb_ary_to_ary): new function to replace internal rb_Array(), which never calls to_a, but to_ary (rb_Array() might call both). [new] * regex.c (PUSH_FAILURE_POINT): push option status again. * regex.c (re_compile_pattern): avoid pushing unnecessary option_set. * eval.c (rb_load): tainted string is OK if wrapped *and* $SAFE >= 4. * eval.c (rb_thread_start_0): should not nail down higher blocks before preserving original context (i.e. should not alter original context). * eval.c (proc_yield): new method equivalent to Proc#call but no check for number of arguments. [new] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-30* ruby.c (proc_options): unexpected SecurityError happens when -T4.matz
* regex.c (re_compile_pattern): * \1 .. \9 should be backreferences always. * regex.c (re_match): backreferences corresponding to unclosed/unmatched parentheses should fail always. * string.c (rb_str_cat): use rb_str_buf_cat() if possible. [new] * string.c (rb_str_append): ditto. * string.c (rb_str_buf_cat): remove unnecessary check (type, taint, modify) to gain performance. * string.c (rb_str_buf_append): ditto. * string.c (rb_str_buf_finish): removed. * string.c (rb_str_buf_new): buffering string function. [new] * string.c (rb_str_buf_append): ditto. * string.c (rb_str_buf_cat): ditto. * string.c (rb_str_buf_finish): ditto. * time.c (make_time_t): local time adjustment revised. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e