lib/rogue_one/ping.rb in rogue_one-0.2.0 vs lib/rogue_one/ping.rb in rogue_one-0.3.0

- old
+ new

@@ -7,10 +7,10 @@ def initialize(nameserver) @resolver = Resolver.new(nameserver: nameserver) end def pong? - result = resolver.dig("example.com", "A") + result = resolver.get_resource("example.com", "A") raise Error, "DNS resolve error: there is no resopnse from #{resolver.nameserver}" unless result true end