test/examples/soa-dns.rb in rubydns-0.5.4 vs test/examples/soa-dns.rb in rubydns-0.6.0
- old
+ new
@@ -55,10 +55,10 @@
transaction.respond!(Name.create("ns.mydomain.org."))
end
# For this exact address record, return an IP address
# dig @localhost -p 5300 CNAME bob.mydomain.org
- match(/([^.]+).mydomain.org/, IN::CNAME) do |match_data, transaction|
+ match(/([^.]+).mydomain.org/, IN::CNAME) do |transaction|
transaction.respond!(Name.create("www.mydomain.org"))
transaction.append_query!("www.mydomain.org", IN::A)
end
match("80.0.0.10.in-addr.arpa", IN::PTR) do |transaction|