Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Pdns
- newrecord("vip.your.net") do |query, answer| hr = Time.now.hour
- case hr
- when 0..9
- content.answer "1.x.x.x"
- when 10..20
- content.answer "2.x.x.x"
- when 21..23
- content.answer "3.x.x.x"
- end
- end
- end
Add Comment
Please, Sign In to add comment