⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (239 Bytes)
Bug #12838
» client.rb
jschneiderhan (Jon-Erik Schneiderhan)
, 10/13/2016 08:43 PM
#!/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"
)
« Previous
1
2
3
Next »
(2-2/3)
Loading...