summaryrefslogtreecommitdiff
path: root/lib/resolv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r--lib/resolv.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index 80536fbdd8..769ebe34f5 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -319,6 +319,7 @@ class Resolv
@initialized = true
end
}
+ self
end
def getaddress(name)
@@ -397,6 +398,7 @@ class Resolv
@initialized = true
end
}
+ self
end
def close
@@ -739,6 +741,13 @@ class Resolv
when 'search'
next if args.empty?
search = args
+ when 'options'
+ args.each {|arg|
+ case arg
+ when /\Andots:(\d+)\z/
+ ndots = $1.to_i
+ end
+ }
end
}
}
@@ -814,6 +823,7 @@ class Resolv
@initialized = true
end
}
+ self
end
def single?