This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Ruby PowerDNS Development Framework
ripienaar/ruby-pdns
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 foo.your.net in PDNS and do GeoIP look ups and respond correctly module Pdns newrecord("foo.your.net", :type => :record) do |query, answer| answer.qtype :A answer.ttl 600 case country(query[:remoteip]) when "DE" answer.content "1.2.3.4" else answer.content "4.3.2.1" answer.content "1.2.3.4" answer.content [:TXT, "Some TXT record for this response"] end end end The code is hosted on Google Code at http://code.google.com/p/ruby-pdns/ find more information there
About
Ruby PowerDNS Development Framework
Resources
Stars
Watchers
Forks
Packages 0
No packages published