lib/meltdown/dns_server.rb in meltdown-0.0.1 vs lib/meltdown/dns_server.rb in meltdown-0.0.2
- old
+ new
@@ -15,9 +15,14 @@
match(/.*\.dev$/, :A) do |match, transaction|
logger.info "DNS match A : #{transaction.inspect}"
transaction.respond!("127.0.0.1")
end
+ match(/.*\.dev$/, :AAAA) do |match, transaction|
+ logger.info "DNS match AAAA : #{transaction.inspect}"
+ transaction.respond!("::1")
+ end
+
match("1.0.0.127.in-addr.arpa", :PTR) do |transaction|
logger.info "DNS match PTR : #{transaction.inspect}"
transaction.respond!(Name.create("default.dev."))
end
end