examples/basic-dns.rb in rubydns-2.0.0.pre.rc2 vs examples/basic-dns.rb in rubydns-2.0.0
- old
+ new
@@ -10,10 +10,10 @@
# Use upstream DNS for name resolution.
UPSTREAM = RubyDNS::Resolver.new([[:udp, "8.8.8.8", 53], [:tcp, "8.8.8.8", 53]])
# Start the RubyDNS server
-RubyDNS::run_server(:listen => INTERFACES) do
+RubyDNS::run_server(INTERFACES) do
match(%r{test.local}, IN::A) do |transaction|
transaction.respond!("10.0.0.80")
end
# Default DNS handler
\ No newline at end of file