文件管理器 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://www.codercto.com/soft/d/470.html

The Practice of Programming

The Practice of Programming

Brian W. Kernighan、Rob Pike / Addison-Wesley / 1999-2-14 / USD 49.99

With the same insight and authority that made their book The Unix Programming Environment a classic, Brian Kernighan and Rob Pike have written The Practice of Programming to help make individual progr......一起来看看 《The Practice of Programming》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具