文件管理器 ruby-pdns

码农软件 · 软件分类 · 网络工具包 · 2019-03-02 15:27:27

软件介绍

ruby-pdns 是一个简单的Ruby库用来开发动态基于 PowerDNS的DNS记录应用,它将复杂的DNS操作过程封装起来并提供简单易用的方法,示例代码如下所示:

module Pdns
  newrecord
("www.your.net") do |query, answer|
   
case country(query[:remoteip])
     
when "US", "CA"
        answer
.content "64.xx.xx.245"

     
when "ZA", "ZW"
        answer
.content "196.xx.xx.10"

     
else
        answer
.content "78.xx.xx.140"
     
end
 
end
end

本文地址:https://codercto.com/soft/d/470.html

The Effective Engineer

The Effective Engineer

Edmond Lau / The Effective Bookshelf, Palo Alto, CA. / 2015-3-19 / USD 39.00

Introducing The Effective Engineer — the only book designed specifically for today's software engineers, based on extensive interviews with engineering leaders at top tech companies, and packed with h......一起来看看 《The Effective Engineer》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具