Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 888 Bytes
Ruby PDNS Pipe Backend
This is a framework for hosting specific records using Power DNS, you can code the logic
for these records in ruby, the framework takes care of the hard work like hosting your
code and speaking to PDNS.
A sample record code would be, this is all you would need to do to host in
PDNS and do GeoIP look ups and respond correctly
module Pdns
newrecord("", :type => :record) do |query, answer|
answer.qtype :A
answer.ttl 600
case country(query[:remoteip])
when "DE"
answer.content ""
answer.content ""
answer.content ""
answer.content [:TXT, "Some TXT record for this response"]
The code is hosted on Google Code at find more information
Something went wrong with that request. Please try again.