Project

General

Profile

Bug #12838 » client.rb

 
#!/usr/bin/env ruby

require 'resolv'

Resolv::DefaultResolver.replace_resolvers(
[Resolv::Hosts.new, Resolv::DNS.new(nameserver: '127.0.0.1', search: ['bad1.com', 'bad2.com', 'good.com'], ndots: 5)]
)

puts Resolv.getaddress("example")
(2-2/3)