Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add IPv6 resolution

improves performance substantially
  • Loading branch information...
commit e85311e935904954f82d7deaac6df9d86a03de74 1 parent 8f09081
@coreyti authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/meltdown/dns_server.rb
View
5 lib/meltdown/dns_server.rb
@@ -17,6 +17,11 @@ def run
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."))
Please sign in to comment.
Something went wrong with that request. Please try again.