test/examples/fortune-dns.rb in rubydns-0.6.7 vs test/examples/fortune-dns.rb in rubydns-0.7.0

- old
+ new

@@ -77,11 +77,11 @@ stats[:requested] += 1 if fortune transaction.respond!(*fortune.chunked) else - transaction.failure!(:NXDomain) + transaction.fail!(:NXDomain) end end match(/fortune/, [IN::CNAME, IN::TXT]) do |transaction| fortune = `fortune`.gsub(/\s+/, " ").strip @@ -98,10 +98,10 @@ transaction.respond!(*fortune.chunked, :ttl => 0) end # Default DNS handler otherwise do |transaction| - transaction.failure!(:NXDomain) + transaction.fail!(:NXDomain) end end end end