examples/cname.rb in rubydns-2.0.0.pre.rc2 vs examples/cname.rb in rubydns-2.0.0
- old
+ new
@@ -11,10 +11,10 @@
Name = Resolv::DNS::Name
IN = Resolv::DNS::Resource::IN
UPSTREAM = RubyDNS::Resolver.new([[:udp, "8.8.8.8", 53], [:tcp, "8.8.8.8", 53]])
-RubyDNS::run_server(:listen => INTERFACES) do
+RubyDNS::run_server(INTERFACES) do
# How to respond to something other than what was requested.
match(//, IN::A) do |transaction|
transaction.respond!(Name.create('foo.bar'), resource_class: IN::CNAME)
end